getMobileDeviceInfo(params: Object)
Requires:
BaseKit≥2.4.3@ray-js/ray≥1.6.8
Platforms:
iOSAndroid
Description
Get basic device information
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 |
|---|---|---|---|
abi | string | Application Binary Interface (ABI) type (Android only) | v3.2.6 |
brand | string | Device brand | v3.2.6 |
model | string | Device model. Newly released models may show "unknown" for a period. | v3.2.6 |
system | string | OS and version | v3.2.6 |
platform | string | System type, e.g., ios, android, harmony | v3.2.6 |
uuid | string | Unique device identifier | v3.35.5 |
fail callback parameters
| Property | Type | Description |
|---|---|---|
errorMsg | string | Error message |
errorCode | string | number | Error code |
| Error extension |
Return Value
None