Class: MobileObject

Class: MobileObject

MobileObject

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

Methods

delete() → {Promise.<NetworkResponse>}

Delete the object. Saves any changes to the object back to the service.
Source:
Returns:
Type
Promise.<NetworkResponse>

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

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.<MobileObject>