handleShortcut(params: Object)
Requires:
BizKit≥3.1.1@ray-js/ray≥0.8.0
Platforms:
iOSAndroid
Description
Manage shortcuts, including add and remove, iOS only
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
type | number | Yes | Operation type: 0-add, 1-remove |
sceneId | string | Yes | Scene ID |
name | string | Yes | Scene name |
iconUrl | string | No | Scene logo |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | (params: Object) => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
success callback parameters
| Property | Type | Description | BizKit Since |
|---|---|---|---|
operationStep | number | Operation step: 0-add, 1-remove, 2-update, 3-cancel | v3.1.2 |
operationStatus | boolean | Operation status: YES for success; NO for failure | v3.1.2 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None