showActionSheet
Requires:
BaseKit≥2.0.1@ray-js/ray≥0.3.23
Platforms:
iOSAndroid
Method signature
showActionSheet(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
Description
Show an action sheet
Parameters
| Property | Type | Required | Description | BaseKit Since | Minimum SDK versions |
|---|---|---|---|---|---|
alertText | string | No | Warning text | - | — |
itemList | string[] | Yes | Array of button texts, up to 6 items | - | — |
itemColor | string | Yes | Button text color | - | — |
itemColors | string[] | No | Button text color | v3.6.8 | — |
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 | BaseKit Since | Minimum SDK versions |
|---|---|---|---|---|
tapIndex | number | Index of the button the user tapped, ordered top to bottom, starting from 0 | v3.2.6 | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None