Mobile SDK

iOS or Android

API Reference - pims.vehicle.device

Info: Stellantis Mobile SDK is not publicly available.
Tutorial: check-out Send Navigation.
SDK Version: v2.3
API Available since: v2.0
API Last update: v2.0
Plateforme Compatibility: PSA
Security:
  • Authentication: Authentication is required.
Operations:

This api allows filtering device to connect or not. This API exists only for Android, this step is not required, and does not exist for iOS.

Input Parameters Object
Param name Description Type Unit/Values Example Required
isConnected

Indicates if you choose to connect the device or not.

Boolean

n/a

true true
Output Data Object
No outputted data
Error
No errors
Code Example
1
2
3
4
5
6
7
8
9
pims.set("pims.vehicle.device",
  mapOf( /* parameters */  
    Pair("isConnected", true)
  ) 
) { message -> when (message["status"] as? String) {
      "SUCCEEDED" -> { }                          // handle succeeded status
      "FAILED" ->    { }                          // handle failed status
  } }
1
2
3
4
5
6
7
8
9
pims.set(api: "pims.vehicle.device",
  parameters: [  
    "isConnected": true
  ]
  ) { (message) in 
    if message["status"] == "SUCCEEDED"    { }    // handle succeeded status
    else if message["status"] == "FAILED" { }    // handle failed status
  } 
1
2
3
4
5
6
// representation of the `succeeded` dictionary object message as JSON
{
  "transactionId": "953cfefb-bc72",
  "status": "SUCCEEDED",
  "result": { }
}

false