The Android Developer Challenge is back! Submit your idea before December 2.

OnUxRestrictionsChangedListener

interface OnUxRestrictionsChangedListener
androidx.car.uxrestrictions.OnUxRestrictionsChangedListener

Listener Interface for clients to implement to get updated on User Experience Restrictions (UXR, or UX restrictions) related changes.

Summary

Public methods

abstract Unit

Called when the UX restrictions changes due to a car's driving state.

Public methods

onUxRestrictionsChanged

abstract fun onUxRestrictionsChanged(restrictionInfo: CarUxRestrictions!): Unit

Called when the UX restrictions changes due to a car's driving state.

Parameters
restrictionInfo CarUxRestrictions!: The new UX restriction information