getSystemSetting
Requires:
BaseKit≥2.5.0@ray-js/ray≥0.5.9
Platforms:
iOSAndroid
Method signature
getSystemSetting(params: )Minimum SDK versions
- iOS
ThingSmartBaseKitBizBundle - ≥ 5.2.1
- Android
com.thingclips.smart:thingsmart-bizbundle-basekit - ≥ 5.2.0
Description
Get device settings
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 | BaseKit Since | Minimum SDK versions |
|---|---|---|---|---|
bluetoothEnabled | boolean | System Bluetooth switch, default false | v3.2.6 | — |
locationEnabled | boolean | System location switch, default false | v3.2.6 | — |
wifiEnabled | boolean | System Wi‑Fi switch, default false | v3.2.6 | — |
deviceOrientation | string | Device orientation, default is portrait Portrait = "portrait", landscape = "landscape" | v3.2.6 | — |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None