mozilla
Your Search Results

    navigator.mozApps.mgmt.watchUpdates

    Obsolete
    This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

    Summary

    Sets up a callback function to be called whenever an app is installed or removed from the repository.

    Syntax

    id = navigator.mozApps.mgmt.watchUpdates( onupdate )
    

    Parameters

    onupdate
    A callback function that is called whenever an app is installed or removed. It is called with two parameters:
    • updateType: either "add" or "remove".
    • changedApps: an array of app objects that have been installed or removed.

    Returns

    A long that can be used to clear this watch using clearWatch().

    Document Tags and Contributors

    Tags: 
    Contributors to this page: Sheppy, jswisher, ethertank, chrisdavidmills, kohei.yoshino, markg
    Last updated by: chrisdavidmills,