Mobile SDK

iOS or Android

API Reference - pims.vehicle.services

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: none
Operations:

This API return state of available services.

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

List of available services name.

Array of Strings

- o2x

- sendtonav

- tripsanddrive
[ "o2x" ] true
Output Data Object
Data name Description Type Unit/Values Example
services

Information about the service.

Object

/
services
 .name

Service name.

String

n/a

o2x
services
 .status

Status of the service.

Array of Strings

- started

- stopped

- notLoaded
[ "started" ]
Error
No errors
Code Example
1
2
3
4
5
6
7
8
9
pims.get("pims.vehicle.services",
  mapOf( /* parameters */  
    Pair("services", mapOf("o2x"))
  ) 
) { message -> when (message["status"] as? String) {
      "SUCCEEDED" -> { }                          // handle succeeded status
      "FAILED" ->    { }                          // handle failed status
  } }
1
2
3
4
5
6
7
8
9
pims.get(api: "pims.vehicle.services",
  parameters: [  
    "services": mapOf("o2x")
  ]
  ) { (message) in 
    if message["status"] == "SUCCEEDED"    { }    // 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": {
    "services": {
      "name": "o2x",
      "status": [ "started" ]
    }
  }
}

false