Adds an action to the action queue.
addAction( type, handle, metadata, data, onSuccess, onFailure )
This method does not return anything.
| Name |
Description |
Type |
Use |
| type |
Denotes the type of action to be written. |
string |
optional |
| handle |
Action's handle, used in data synchronization. |
string |
optional |
| metadata |
Action's meta data. |
string |
required |
| data |
The action's data string. |
string |
required |
| onSuccess |
A callback function, informs that the operation completed successfully. |
function |
required |
| onFailure |
A callback function, called when the operation fails. Returns an error code, as
defined in the Constants table in the Client Store article. |
function |
required |