Type Definitions
errorCallbackFunction(error)
A user defined error callback function. The contract of the function is out of scope for Mobile SDK, but the object passed to that function by Mobile SDK will conform to a strict structure.
Parameters:
Name | Type | Description |
---|---|---|
error |
Object | A Json Object with below structure { "errorCode": <The error code. For ex. 3003123>, "errorMessage": "<The error message>" "errorInfo":"<The Error Info>" } |
- Source:
successCallbackFunction(result)
A user defined success callback function. The contract of the function is out of scope for Mobile SDK, but the object passed to that function by Mobile SDK will conform to a structure based on operation type.
Parameters:
Name | Type | Description |
---|---|---|
result |
Object | The result object can take any form. It can be an object, or a plain string, a boolean or a number based on the API.
As an example for HTTP GET calls it will be : { "MASResponseInfoBodyInfoKey": "<The response content>", "MASResponseInfoHeaderInfoKey":{ "<header name>": "<Header value>" } } For other operations, it can be a string returning SUCCESS or TRUE or any other type Developer may check for existance of result object to define success in such case and must not rely on the exact response format. To know about specific result for each API see http://mas.ca.com/docs/cordova/latest/guides |
- Source: