showActionSheet
Show an action sheet and return the user selection.
Declaration
java
void showActionSheet(SUDOPCommonStateHandle handle, SUDOPShowActionSheetParams params);This is a host callback on SUDOPWrappedClient. Register the implementation with registerWrappedClient. Perform the operation and report success or failure once through the SDK-supplied handle. Perform view and window operations on the Android main thread.
SUDOPShowActionSheetParams
| Field | Type | Description |
|---|---|---|
alertText | String | Alert text |
itemList | List<String> | Button labels, up to 6 items |
itemColor | String | Button text color |
Result
Call handle.success(dataJson) on success or handle.failure(retCode, retMsg) on failure, with a nonzero error code.
json
{"tapIndex":0}tapIndex is zero-based. Report cancellation as a failure; the sample Wrapper uses handle.failure(-1, retMsg).
Handle type: global.sud.op.runtime.client.SUDOPCommonStateHandle。
The parameter type is in global.sud.op.runtime.core.model.
