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
Documentation
CloseApplication

CloseApplication

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

Behavior

If the application is in the foreground of the HMI:

Must
  1. Remove the application from the foreground.

SDL will:

  1. Place the application in hmiLevel NONE

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