A | |
addEventListener, eventhandling | |
C | |
cachingLayer, cachinglayer | |
checkPath, RemoteStorage. | |
claim, RemoteStorage. | |
connect, RemoteStorage | |
D | |
declareType, RemoteStorage. | |
defineModule, RemoteStorage | |
disable, RemoteStorage. | |
disableLog, RemoteStorage | |
disconnect, RemoteStorage | |
display | |
displayWidget | |
E | |
enable, RemoteStorage. | |
enableLog, RemoteStorage | |
eventHandling, eventhandling | |
F | |
fetchDelta, RemoteStorage. | |
fixArrayBuffers, cachinglayer | |
G | |
getAll, RemoteStorage. | |
getBackgroundSyncInterval, RemoteStorage.Sync | |
getCurrentSyncInterval, RemoteStorage.Sync | |
getFile, RemoteStorage. | |
getItemURL, RemoteStorage. | |
getListing, RemoteStorage. | |
getObject, RemoteStorage. | |
getSyncInterval, RemoteStorage.Sync | |
H | |
hideBubble, RemoteStorage. | |
L | |
log | |
O | |
on, eventhandling. | |
onActivate, RemoteStorage. | |
onChange, RemoteStorage | |
R | |
remove, RemoteStorage. | |
removeEventListener, eventhandling | |
reset, RemoteStorage. | |
RS#scope, RemoteStorage. | |
S | |
scope, RemoteStorage. | |
set, RemoteStorage. | |
setApiKeys(experimental), RemoteStorage | |
setBackgroundSyncInterval, RemoteStorage.Sync | |
setState, RemoteStorage. | |
setSyncInterval, RemoteStorage.Sync | |
setUserAddress, RemoteStorage. | |
setUserSecretKey, RemoteStorage. | |
setView(view), RemoteStorage. | |
showBubble, RemoteStorage. | |
storeFile, RemoteStorage. | |
storeObject, RemoteStorage. | |
sync, RemoteStorage.Sync | |
T | |
toggleBubble, RemoteStorage. | |
V | |
validate, RemoteStorage. |
Install an event handler for the given event name
addEventListener: function( eventName, handler )
Mixes common caching layer functionality into an object.
RemoteStorage.cachingLayer = function( object )
Retrieve caching setting for a given path, or its next parent with a caching strategy set.
checkPath: function( path )
Claim access on a given scope with given mode.
claim: function( scope, mode )
Connect to a remoteStorage server.
connect: function( userAddress )
Method for defining a new remoteStorage data module
RemoteStorage.defineModule = function( moduleName, builder )
Disable caching for a given path.
disable: function( path )
Disable remoteStorage logging
disableLog: function()
“Disconnect” from remotestorage server to terminate current session.
disconnect: function()
Displays the widget via the view.display method
display: function( options )
Draw the widget inside of the dom element with the id options.domID
display: function( options )
Same as display
RemoteStorage.prototype.displayWidget = function( options )
Enable caching for a given path.
enable: function( path )
Enable remoteStorage logging
enableLog: function()
Mixes event handling functionality into an object.
RemoteStorage.eventHandling = function( object )
this method fetches the deltas from the dropbox api, used to sync the storage here we retrive changes and put them into the _revCache, those values will then be used to determin if something has changed.
fetchDelta: function()
Takes an object and its copy as produced by the _deepClone function below, and finds and fixes any ArrayBuffers that were cast to `{}` instead of being cloned to new ArrayBuffers with the same content.
function fixArrayBuffers( srcObj, dstObj )
Get all objects directly below a given path.
getAll: function( path, maxAge )
Get the value of the sync interval when application is in the background
RemoteStorage.prototype.getBackgroundSyncInterval = function()
Get the value of the current sync interval
RemoteStorage.prototype.getCurrentSyncInterval = function()
Get the file at the given path.
getFile: function( path, maxAge )
Retrieve full URL of item
getItemURL: function( path )
Get a list of child nodes below a given path.
getListing: function( path, maxAge )
Get a JSON object from given path.
getObject: function( path, maxAge )
Get the value of the sync interval when application is in the foreground
RemoteStorage.prototype.getSyncInterval = function()
Hide the bubble
hideBubble: function()
The same as RemoteStorage.log.
log: function()
Log using console.log, when remoteStorage logging is enabled.
RemoteStorage.log = function()
Set a callback for when caching is activated for a path.
onActivate: function( cb )
Add a “change” event handler to the given path.
onChange: function( path, handler )
Remove node at given path from storage.
remove: function( path )
Remove a previously installed event handler
removeEventListener: function( eventName, handler )
Reset the state of caching by deleting all caching information.
reset: function()
Returns a new BaseClient operating on a subpath of the current base path.
scope: function( path )
Set the caching strategy for a given path explicitly.
set: function( path, value )
Set API keys for (currently) GoogleDrive and/or Dropbox backend support.
setApiKeys: function( type, keys )
Set the value of the sync interval when the application is in the background
RemoteStorage.prototype.setBackgroundSyncInterval = function( interval )
Call the function that applies the state to the widget
setState: function( state, args )
Set the value of the sync interval when application is in the foreground
RemoteStorage.prototype.setSyncInterval = function( interval )
Set user address of the input field
setUserAddress: function( addr )
Set user secret key
setUserSecretKey: function( secretKey )
Sets the view and initializes event listeners to react on widget (widget.view) events
setView: function( view )
Show the bubble
showBubble: function( event )
Store raw data at a given path.
storeFile: function( mimeType, path, body )
Store object at given path.
storeObject: function( typeAlias, path, object )
sync: function()
Show the bubble when hidden and the other way around
toggleBubble: function( event )
Validate an object against the associated schema.
validate: function( object )