java.lang.Object
com.smartdevicelink.proxy.RPCStruct
com.smartdevicelink.proxy.RPCMessage
com.smartdevicelink.proxy.RPCNotification
Notifies the application of the current driver distraction state (whether driver distraction rules are in effect, or not).
HMI Status Requirements:Name | Type | Description | SmartDeviceLink Ver Available |
---|---|---|---|
state | DriverDistractionState | Current driver distraction state (i.e. whether driver distraction rules are in effect, or not). | SmartDeviceLink 1.0 |
public static final java.lang.String KEY_STATE
public static final java.lang.String KEY_LOCKSCREEN_DISMISSIBLE
public static final java.lang.String KEY_LOCKSCREEN_DISMISSIBLE_MSG
Constructs a newly allocated OnDriverDistraction object
public OnDriverDistraction()
Constructs a newly allocated OnDriverDistraction object indicated by the Hashtable parameter
public OnDriverDistraction(java.util.Hashtable<java.lang.String, java.lang.Object> hash)
Constructs a newly allocated OnDriverDistraction object
public OnDriverDistraction(DriverDistractionState state)
Called to get the current driver distraction state(i.e. whether driver distraction rules are in effect, or not)
public com.smartdevicelink.proxy.rpc.enums.DriverDistractionState getState()
Called to set the driver distraction state(i.e. whether driver distraction rules are in effect, or not)
public com.smartdevicelink.proxy.rpc.OnDriverDistraction setState(DriverDistractionState state)
Called to set dismissible state of Lockscreen
public com.smartdevicelink.proxy.rpc.OnDriverDistraction setLockscreenDismissibility(boolean isDismissible)
Called to get the dismissible state of Lockscreen
public java.lang.Boolean getLockscreenDismissibility()
Called to set a warning message for the lockscreen
public com.smartdevicelink.proxy.rpc.OnDriverDistraction setLockscreenWarningMessage(String msg)
Called to get the lockscreen warning message
public java.lang.String getLockscreenWarningMessage()
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 |