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
CloseApplication

CloseApplication

Type
Function
Sender
HMI
Purpose
Request to remove the application from the foreground

Behavior

Must
  1. Remove the application from the foreground (SDL will place the application in hmiLevel NONE).
  2. Send BC.OnResetTimeout notification to SDL for resetting timeout in case HMI needs more time to process the request.

Request

Parameters

Name Type Mandatory Description
appID Integer true The application to be removed from the foreground

Response

Parameters

This RPC has no additional parameter requirements

Sequence Diagrams

JSON Message Examples

Example Request

{
  "id" : 47,
  "jsonrpc" : "2.0",
  "method" : "BasicCommunication.CloseApplication",
  "params" :
  {
    "appID" : 65368
  }
}

Example Response

{
  "id" : 47,
  "jsonrpc" : "2.0",
  "result" :
  {
    "code" : 0,
    "method" : "BasicCommunication.CloseApplication"
  }
}

Example Error

{
  "id" : 47,
  "jsonrpc" : "2.0",
  "error" :
  {
    "code" : 13,
    "message" : "The provided appID is not valid.",
    "data" :
    {
      "method" : "BasicCommunication.CloseApplication"
    }
  }
}
View on GitHub.com
Previous Section Next Section