MobileObject
Class that represents an object returned by a custom code API.
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. |
Returns:
- Type
- Promise.<NetworkResponse>