欢迎参加我们将于 6 月 3 日举行的 #Android11:Beta 版发布会

OnUxRestrictionsChangedListener

public 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 void onUxRestrictionsChanged(CarUxRestrictions restrictionInfo)

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

Public methods

onUxRestrictionsChanged

public abstract void onUxRestrictionsChanged (CarUxRestrictions restrictionInfo)

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

Parameters
restrictionInfo CarUxRestrictions: The new UX restriction information