getSetting
Requires:
BaseKit≥3.12.0@ray-js/ray≥1.5.30
Platforms:
iOSAndroid
Method signature
getSetting(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 6.0.3
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 6.0.0
Description
Get the user's current settings. The response includes only the permissions the miniapp has previously requested.
Parameters
| Property | Type | Required | Description |
|---|---|---|---|
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 | Minimum SDK versions |
|---|---|---|---|
authSetting | Record<string, boolean> | User authorization result | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None