Class: Storage

Class: Storage

Storage

Class that provides cloud-based storage capabilities. Callers should use MobileBackend's storage property.
Source:

Methods

getCollection(name, userIdopt, userIsolatedopt, lazyLoadopt) → {Promise.<(StorageCollection|NetworkResponse)>}

Returns a StorageCollection with the given name from the service associated with the user. Subsequent accesses to StorageObjects in the StorageCollection will only return StorageObjects owned by the user.
Parameters:
Name Type Attributes Description
name String The name of the StorageCollection.
userId String <optional>
Optional, the ID of the user retrieved from the UI.
userIsolated Boolean <optional>
indicate if collection is in isolated mode, used in combination with lazyLoad and userId. This parameter is not required in case lazyLoad is not provided.
lazyLoad Boolean <optional>
indicate not to load collection metadata
Source:
Returns:
Type
Promise.<(StorageCollection|NetworkResponse)>