java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.RPCNotification
Notifies an application that HMI conditions have changed for the application. This indicates whether the application can speak phrases, display text, perform interactions, receive button presses and events, stream audio, etc. This notification will be sent to the application when there has been a change in any one or several of the indicated states (HMILevel, AudioStreamingState or SystemContext) for the application
All three values are, in principle, independent of each other (though there may be some relationships). A value for one parameter should not be interpreted from the value of another parameter.
There are no guarantees about the timeliness or latency of the OnHMIStatus notification. Therefore, for example, information such as AudioStreamingState may not indicate that the audio stream became inaudible to the user exactly when the OnHMIStatus notification was received.
Parameter List:
Name | Type | Description | SmartDeviceLink Ver Available |
---|---|---|---|
hmiLevel | HMILevel | The current HMI Level in effect for the application. | SmartDeviceLink 1.0 |
audioStreamingState | AudioStreamingState | Current state of audio streaming for the application. When this parameter has a value of NOT_AUDIBLE, the application must stop streaming audio to SDL. Informs app whether any currently streaming audio is audible to user (AUDIBLE) or not (NOT_AUDIBLE). A value of NOT_AUDIBLE means that either the application's audio will not be audible to the user, or that the application's audio should not be audible to the user (i.e. some other application on the mobile device may be streaming audio and the application's audio would be blended with that other audio). | SmartDeviceLink 1.0 |
videoStreamingState | VideoStreamingState | If it is NOT_STREAMABLE, the app must stop streaming video to SDL Core(stop service). | SmartDeviceLink 5.0 |
systemContext | SystemContext | Indicates that a user-initiated interaction is in-progress (VRSESSION or MENU), or not (MAIN) | SmartDeviceLink 1.0 |
public static final java.lang.String KEY_AUDIO_STREAMING_STATE
public static final java.lang.String KEY_VIDEO_STREAMING_STATE
public static final java.lang.String KEY_SYSTEM_CONTEXT
public static final java.lang.String KEY_HMI_LEVEL
public static final java.lang.String KEY_WINDOW_ID
Constructs a newly allocated OnHMIStatus object
public OnHMIStatus()
Constructs a newly allocated OnHMIStatus object indicated by the Hashtable parameter
public OnHMIStatus(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a newly allocated OnHMIStatus object
public OnHMIStatus(HMILevel hmiLevel,AudioStreamingState audioStreamingState,SystemContext systemContext)
public void format(Version rpcVersion,boolean formatParams)
Get HMILevel in effect for the application
public com.smartdevicelink.proxy.rpc.enums.HMILevel getHmiLevel()
Set the HMILevel of OnHMIStatus
public com.smartdevicelink.proxy.rpc.OnHMIStatus setHmiLevel(HMILevel hmiLevel)
Get current state of audio streaming for the application
public com.smartdevicelink.proxy.rpc.enums.AudioStreamingState getAudioStreamingState()
Set the audio streaming state
public com.smartdevicelink.proxy.rpc.OnHMIStatus setAudioStreamingState(AudioStreamingState audioStreamingState)
Get current state of video streaming for the application
public com.smartdevicelink.proxy.rpc.enums.VideoStreamingState getVideoStreamingState()
Set the video streaming state
public com.smartdevicelink.proxy.rpc.OnHMIStatus setVideoStreamingState(VideoStreamingState videoStreamingState)
Get the System Context
public com.smartdevicelink.proxy.rpc.enums.SystemContext getSystemContext()
Set the System Context of OnHMIStatus
public com.smartdevicelink.proxy.rpc.OnHMIStatus setSystemContext(SystemContext systemContext)
Query whether it's the first run
public java.lang.Boolean getFirstRun()
Set the firstRun value
public com.smartdevicelink.proxy.rpc.OnHMIStatus setFirstRun(Boolean firstRun)
Set the windowID value
public com.smartdevicelink.proxy.rpc.OnHMIStatus setWindowID(Integer windowID)
Get the windowID value
public java.lang.Integer getWindowID()
From Class | Methods |
---|---|
com.smartdevicelink.proxy.RPCMessage | getFunctionID, getFunctionName, setFunctionName, getMessageType, setParameters, getParameters, getObject, getString, getInteger, getFloat, getDouble, getBoolean, getLong |
com.smartdevicelink.proxy.RPCStruct | getStoreValue, getStore, deserializeJSON, serializeJSON, serializeJSON, format, getBulkData, setBulkData, setPayloadProtected, isPayloadProtected, getMessageTypeName, hasKey, setValue, getValue, getObject, formatObject, getValueForString, getString, getInteger, getDouble, getFloat, getBoolean, getLong, clone, equals, hashCode |
java.lang.Object | getClass, hashCode, equals, clone, toString, notify, notifyAll, wait, wait, wait, finalize |