setQuickEntryEnabled(params: Object)
Requires:
WearKit≥2.1.0@ray-js/ray≥1.7.82
Platforms:
iOSAndroid
Description
Enable or disable quick entry component by type and component ID.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
type | number | Yes | Entry type (int): Android starts with 1: 101=Component/102=Shortcut icon/103=Tile; iOS starts with 2: 201=Component/202=Shortcut icon/203=Tile |
componentId | number | Yes | Component ID (int): Android starts with 1 (1xxx), iOS starts with 2 (2xxx) |
enabled | number | Yes | On/off status (int): 0=off, 1=on |
complete | () => void | No | Completion callback (executed on both success and failure) |
success | () => void | No | Callback on successful API call |
fail | (params: Object) => void | No | Failure callback |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None
Error Code
| Error Code | Error Message |
|---|---|
10001 | Internal error |