Expand Minimize Picture-in-picture Power Device Status Voice Recognition Skip Back Skip Forward Minus Plus Play Search
Documentation
Sidebar

OnExitApplication

Type
Notification
Sender
HMI
Purpose
Inform SDL that an application must be unregistered or put into the NONE HMI state.
Must
  1. Provide the possibility for the user to exit any of the registered applications.
  2. Track if an application is active or running in the background, and complies with the driver distraction rules of the system.
  3. Track that the transport type that corresponds to the application running. For example, navigation applications are not allowed to be run over a bluetooth connection.
  4. Ignore all SDL RPC's related to an application that are defined as prohibited for a specific transport type.
  5. Send OnExitApplication notification to SDL if an application conflicts with any of the rules above (i.e. Users requests to exit, driver distraction rules violated, or navigation app connected over bluetooth).
May

The HMI may switch layouts or views according to the workflow after deactivation of an application.

Note
  • Information about the application (name, appID, etc) is provided by SDL via BC.UpdateAppList or BC.OnAppRegistered.
  • SDL ignores all invalid notifications which come from the HMI (Invalid JSON, invalid data types/bounds, etc).

Notification

Parameters

Name Type Mandatory Additional
reason Common.ApplicationExitReason true
appID Integer true

Sequence Diagrams

JSON Example Notification

{
  "jsonrpc" : "2.0",
  "method" : "BasicCommunication.OnExitApplication",
  "params" :
  {
    "appID" : 65544,
    "reason" : "USER_EXIT"
  }
}
View on GitHub.com
Previous Section Next Section