Maintainer: | Michiel de Jong mic@unhost ed.org hiel |
Version: | 0.1.0 |
Apps | |
Functions | |
remoteStorage. | Add an app to the user’s list of installed apps. |
remoteStorage. | Remove an app to the user’s list of installed apps. |
remoteStorage. | Set the change event handler. |
remoteStorage. | Set the change event handler. |
Schemas | |
apps/ | Info necessary for displaying a link to an app in an app store |
Functions | |
remoteStorage. | Get a dictionary of apps whihch the user has installed. |
remoteStorage. | Get a dictionary of apps whihch the user does not have installed, but which are available to install. |
Set the change event handler. This will be called, with the app channel URL as the only argument, on page load and then whenever it changes. Example:
remoteStorage.apps.onChannelChange(function(url) { myChannelUrlInput.value = url; });
handler | a Function that takes a dictionary of apps as its only argument |
Set the change event handler. This will be called, with the dictionary of installed apps as the only argument, once on page load, and then whenever the list of installed apps changes. Example:
remoteStorage.apps.onChange(function(apps) { myAppsView.reset(); for (var i in apps) { myAppsView.add(apps[i]); } myAppsView.render(); });
handler | a Function that takes a dictionary of apps as its only argument |
Get a dictionary of apps whihch the user does not have installed, but which are available to install.
cloneableOnly | boolean; if set to true, only returns apps whose assets you can clone to your own storage. |
Returns: A dictionary from string app names to objects that follow the apps/app schema defined above.