Boolean
String
DriverDistractionState
OnDriverDistraction
OnDriverDistraction
OnDriverDistraction
Boolean
Get the LockScreenDismissalEnabled
Kind: Instance method of OnDriverDistraction
Returns: Boolean
- the KEY_LOCK_SCREEN_DISMISSAL_ENABLED value
String
Get the LockScreenDismissalWarning
Kind: Instance method of OnDriverDistraction
Returns: String
- the KEY_LOCK_SCREEN_DISMISSAL_WARNING value
DriverDistractionState
Get the State
Kind: Instance method of OnDriverDistraction
Returns: DriverDistractionState
- the KEY_STATE value
OnDriverDistraction
Set the LockScreenDismissalEnabled
Kind: Instance method of OnDriverDistraction
Returns: OnDriverDistraction
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
enabled | Boolean |
If enabled, the lock screen will be able to be dismissed while connected to SDL, allowing users the ability to interact with the app. Dismissals should include a warning to the user and ensure that they are not the driver. - The desired LockScreenDismissalEnabled. |
OnDriverDistraction
Set the LockScreenDismissalWarning
Kind: Instance method of OnDriverDistraction
Returns: OnDriverDistraction
- The class instance for method chaining.
Param | Type | Description |
---|---|---|
warning | String |
Warning message to be displayed on the lock screen when dismissal is enabled. This warning should be used to ensure that the user is not the driver of the vehicle, ex. `Swipe down to dismiss, acknowledging that you are not the driver.`. This parameter must be present if "lockScreenDismissalEnabled" is set to true. - The desired LockScreenDismissalWarning. {'string_min_length': 1} |