API Reference - pims.sdk.device
Info: Stellantis Mobile SDK for ex Groupe PSA brands (CitroĂŤn, DS, Peugeot, Opel and Vauxhall) is not publicly available for now.
Returns the device information.
Input Parameter | |||||
---|---|---|---|---|---|
No params |
Output Data | ||||
---|---|---|---|---|
Data name | Description | Type | Unit/Values | Example |
OS | OS Name |
String |
|
Android
|
OSVersion | OS Version |
String |
|
9.0/PPR1.180610.011
|
PhoneModel | Phone model name. |
String |
|
Galaxy S9
|
PhoneBrand | Phone Brand name. |
String |
|
Samsung
|
Error | |
---|---|
No errors |
Code Example
1
2
3
4
5
6
7
pims.get("pims.sdk.device"
/* no params */
) { message -> when (message["status"] as? String) {
"SUCCEEDED" -> { } // handle succeeded status
"FAILED" -> { } // handle failed status
} }
1
2
3
4
5
6
7
pims.get(api: "pims.sdk.device"
/* no params */
) { (message) in
if message["status"] == "SUCEEDED" { } // handle succeeded status
else if message["status"] == "FAILED" { } // handle failed status
}
1
2
3
4
5
6
7
8
9
10
11
// representation of the `succeeded` dictionary object message as JSON
{
"transactionId": "953cfefb-bc72",
"status": "SUCCEEDED",
"result": {
"OS": "Android",
"OSVersion": "9.0/PPR1.180610.011",
"PhoneModel": "Galaxy S9",
"PhoneBrand": "Samsung"
}
}
false