canmove, Confirmed users
409
edits
No edit summary |
No edit summary |
||
Line 28: | Line 28: | ||
# Functions on AddonManager that take above properties and perform actions | # Functions on AddonManager that take above properties and perform actions | ||
For add-on objects, providers wishing to opt in to Sync will expose the following read-only properties: | For add-on objects, providers wishing to opt in to Sync will expose the following read-only, optional properties: | ||
; syncData : a string that describes data necessary to synchronize the add-on between clients. The format of the string is not defined, and is opaque to Sync code. A JSON representation of an object might be a good choice, to hold the data needed by the add-ons manager to install/uninstall an addon. | ; syncData : a string that describes data necessary to synchronize the add-on between clients. The format of the string is not defined, and is opaque to Sync code. A JSON representation of an object might be a good choice, to hold the data needed by the add-ons manager to install/uninstall an addon. | ||
; syncGUID : a GUID used to identify this add-on across Sync client instances. The GUID should be generated using Utils.makeGUID() from the Sync code. It is basically a Base64-encoded representation of 9 random bytes. | ; syncGUID : a GUID used to identify this add-on across Sync client instances. The GUID should be generated using Utils.makeGUID() from the Sync code. It is basically a Base64-encoded representation of 9 random bytes. | ||
(These properties will need to be documented at https://developer.mozilla.org/en/Addons/Add-on_Manager/Addon) | |||
The AddonManager will support the following APIs: | The AddonManager will support the following APIs: |