The external helper app service is used for finding and launching platform specific external applications for a given mime content type.
This interface is intended to be used as a service. To create an object implementing this interface:
var obj = Components.classes["@mozilla.org/uriloader/external-helper-app-service;1"]. getService(Components.interfaces.nsIExternalHelperAppService);
This interface is implemented by the following components:
Returns true if data from a URL with this extension combination is to be decoded from encodingType prior to saving or passing off to helper apps, false otherwise.
Binds an external helper application to a stream listener. The caller should pump data into the returned stream listener. When the OnStopRequest is issued, the stream listener implementation will launch the helper app with this data.
- mimeContentType: The content type of the incoming data
- request: The request corresponding to the incoming data
- windowContext: Use GetInterface to retrieve properties like the dom window or parent window... The service might need this in order to bring up dialogs.
- nsIStreamListener which the caller should pump the data into.
Reference documentation is generated from Mozilla's source.