Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

nsIContentPrefCallback2

Callback used by nsIContentPrefService2 methods
1.0
28
Introduced
Gecko 20.0
Inherits from: nsISupports Last changed in Gecko 20.0 (Firefox 20.0 / Thunderbird 20.0 / SeaMonkey 2.17)

Method overview

void handleCompletion(in unsigned short reason);
void handleError(in nsresult error);
void handleResult(in nsIContentPref pref);

Constants

Constant Value Description
COMPLETE_OK 0  
COMPLETE_ERROR 1  

Methods

handleCompletion()

Called when the method finishes. This will be called exactly once for each method invocation, and afterward no other callback methods will be called.

void handleCompletion(
  in unsigned short reason
);

Parameters

reason
One of the COMPLETE_* values indicating the manner in which the method completed.

handleError()

Called when an error occurs. This may be called multiple times before handleCompletion is called.

void handleError(
  in nsresult error
);

Parameters

error
A number in Components.results describing the error.

handleResult()

For the retrieval methods, this is called once for each retrieved preference. It is not called for other methods.

void handleResult(
  in nsIContentPref pref
);

Parameters

pref
The retrieved preference.

See also

Document Tags and Contributors

 Contributors to this page: Sheppy, trevorh, fscholz
 Last updated by: Sheppy,