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
OnAppDeactivated

OnAppDeactivated

Type
Notification
Sender
HMI
Purpose
Inform the application it is no longer active on the HMI

SDL requires this notification in order to keep the mobile application from sending RPCs related to the HMI's functionality (e.g. adding commands for VR, starting an interaction with the user, speaking text via TTS, etc).

In the event a navigation application is in FULL and the HMI sends OnAppDeactivated, SDL must set the navigation application to LIMITED with the AudioStreamingState set to AUDIBLE, VideoStreamingState STREAMABLE.

In the event a media projection application is in FULL and the HMI sends OnAppDeactivated (user goes out from media app screen to HU menu), SDL must set the app to LIMITED with the AudioStreamingState set to AUDIBLE, VideoStreamingState STREAMABLE.

In the event a non media projection application is in FULL the HMI sends OnAppDeactivated (user goes out from media app screen to HU menu), SDL must set the app to LIMITED with the AudioStreamingState set to NOT_AUDIBLE, VideoStreamingState STREAMABLE.

Note

The information about the application (name, appID, etc) is provided by SDL via the RPCs UpdateAppList or OnAppRegistered. SDL ignores all invalid notifications which come from the HMI (invalid JSON, invalid data types/bounds, etc).

Notification

Parameters

Name Type Mandatory Additional
appID Integer true
windowID Integer false

Sequence Diagrams

JSON Message Examples

Example Notification

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