B2G/gecko/toolkit/mozapps/extensions/AddonManager.jsm
/**
   * Asynchronously gets all installed add-ons.
   *
   * @param  aCallback
   *         A callback which will be passed an array of Addons
   */
Asynchronously gets all installed add-ons.
@param  aCallback
A callback which will be passed an array of Addons
Asynchronously gets all installed add - ons . @param aCallback A callback which will be passed an array of Addons
function AMI_getAllAddons(aCallback) {
    if (!gStarted)
      throw Components.Exception("AddonManager is not initialized",
                                 Cr.NS_ERROR_NOT_INITIALIZED);
    if (typeof aCallback != "function")
      throw Components.Exception("aCallback must be a function",
                                 Cr.NS_ERROR_INVALID_ARG);
    this.getAddonsByTypes(null, aCallback);
  }
function AMI_getAllAddons ( aCallback ) { if ( ! gStarted ) throw Components . Exception ( "AddonManager is not initialized" , Cr . NS_ERROR_NOT_INITIALIZED ) ; if ( typeof aCallback != "function" ) throw Components . Exception ( "aCallback must be a function" , Cr . NS_ERROR_INVALID_ARG ) ; this . getAddonsByTypes ( null , aCallback ) ; }
Asynchronously gets all installed add-ons.
Asynchronously gets all installed add - ons .