mozilla
Your Search Results

    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: Mossop, Sheppy
    Last updated by: Sheppy,
    Hide Sidebar