RemoteStorage.Access

Keeps track of claimed access and scopes.

Summary
RemoteStorage.AccessKeeps track of claimed access and scopes.
Functions
claimClaim access on a given scope with given mode.
Properties
scopesHolds an array of claimed scopes in the form

Functions

claim

claim: function(scope,
mode)

Claim access on a given scope with given mode.

Parameters

scopeAn access scope, such as “contacts” or “calendar”.
modeAccess mode to use.  Either “r” or “rw”.

Example

remoteStorage.access.claim('contacts', 'r');
remoteStorage.access.claim('pictures', 'rw');

Properties

scopes

Holds an array of claimed scopes in the form

{ name: "<scope-name>", mode: "<mode>" }
claim: function(scope,
mode)
Claim access on a given scope with given mode.
Close