Keeps track of claimed access and scopes.
| RemoteStorage. | Keeps track of claimed access and scopes. |
| Functions | |
| claim | Claim access on a given scope with given mode. |
| Properties | |
| scopes | Holds an array of claimed scopes in the form |
claim: function( scope, mode )
Claim access on a given scope with given mode.
| scope | An access scope, such as “contacts” or “calendar” |
| mode | Access mode. Either “r” for read-only or “rw” for read/write |
remoteStorage.access.claim('contacts', 'r');
remoteStorage.access.claim('pictures', 'rw');Claiming root access, meaning complete access to all files and folders of a storage, can be done using an asterisk:
remoteStorage.access.claim('*', 'rw');Claim access on a given scope with given mode.
claim: function( scope, mode )