Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Internet Explorer alert
This browser is not recommended for use with smartdevicelink.com, and may not function properly. Upgrade to a different browser to guarantee support of all features.
close alert
To Top Created with Sketch. To Top
To Bottom Created with Sketch. To Bottom
HMI Documentation
GetActiveServiceConsent

GetActiveServiceConsent

Type
Function
Sender
SDL
Purpose
Request user consent to activate an app service

Request

Must
  1. Prompt user to activate service with serviceID
  2. Respond with the result from the user in the activate parameter

Parameters

Name Type Mandatory Additional
serviceID String true

Response

Parameters

Name Type Mandatory Additional
activate Boolean true

Sequence Diagrams

JSON Message Examples

Example Request

{
   "id": 1000,
   "jsonrpc": "2.0",
   "method": "AppService.GetActiveServiceConsent",
   "params": {
      "serviceID": "service_id"
   }
}

Example Response

{
   "id" : 1000,
   "jsonrpc" : "2.0",
   "result" : {
      "activate" : true,
      "code" : 0,
      "method" : "AppService.GetActiveServiceConsent"
   }
}

Example Error

{
   "id" : 1000,
   "jsonrpc" : "2.0",
   "error" : {
      "code" : 13,
      "message" : "No known service with given ID",
      "data" : {
          "method" : "AppService.GetActiveServiceConsent"
      }
   }
}
View on GitHub.com
Previous Section Next Section