Class: MobileObject

Class: MobileObject

MobileObject

Class that represents an object returned by a custom code API.

Constructor

new MobileObject()

Source:

Methods

save(saveIfOffline) → {Promise.<NetworkResponse>}

Save the object. Saves any changes to the object back to the service.
Parameters:
Name Type Description
saveIfOffline Boolean If true will cache updates locally and sync them back to the service if the device is offline; if false will fail if the device is offline.
Source:
Returns:
Type
Promise.<NetworkResponse>