getSystemSetting(params: Object)
Requires:
BaseKit≥2.5.0@ray-js/ray≥0.5.9
Platforms:
iOSAndroid
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 |
|---|---|---|---|
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