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.

TypeListener

TypeListeners can be registered with AddonManager.addTypeListener() and will then receive notification as AddonType are registered and unregistered.

Method Overview

void onTypeAdded(in AddonType type)
void onTypeRemoved(in AddonType type)

Methods

onTypeAdded()

Called when an add-on type has been added.

void onTypeAdded(
  in AddonType type
)
Parameters
type
The AddonType that is being added
needsRestart
True if an application restart is necessary for the change to take effect

onTypeRemoved()

Called when an add-on type has been removed.

void onTypeRemoved(
  in AddonType type,
)
Parameters
type
The AddonType that has been removed

Document Tags and Contributors

 Contributors to this page: Sheppy, Mossop
 Last updated by: Sheppy,