Google se compromete a impulsar la igualdad racial para las comunidades afrodescendientes. Obtén información al respecto.

CarUxRestrictionsManager

public final class CarUxRestrictionsManager
extends Object

java.lang.Object
   ↳ android.car.drivingstate.CarUxRestrictionsManager


API to register and get the User Experience restrictions imposed based on the car's driving state.

Summary

Nested classes

interface CarUxRestrictionsManager.OnUxRestrictionsChangedListener

Listener Interface for clients to implement to get updated on driving state related changes. 

Public methods

CarUxRestrictions getCurrentCarUxRestrictions()

Gets the current UX restrictions (CarUxRestrictions) in place.

void registerListener(CarUxRestrictionsManager.OnUxRestrictionsChangedListener listener)

Registers a OnUxRestrictionsChangedListener for listening to changes in the UX Restrictions to adhere to.

void unregisterListener()

Unregisters the registered OnUxRestrictionsChangedListener

Inherited methods

Public methods

getCurrentCarUxRestrictions

public CarUxRestrictions getCurrentCarUxRestrictions ()

Gets the current UX restrictions (CarUxRestrictions) in place.

Returns
CarUxRestrictions current UX restrictions that is in effect.

registerListener

public void registerListener (CarUxRestrictionsManager.OnUxRestrictionsChangedListener listener)

Registers a OnUxRestrictionsChangedListener for listening to changes in the UX Restrictions to adhere to.

If a listener has already been registered, it has to be unregistered before registering the new one.

Parameters
listener CarUxRestrictionsManager.OnUxRestrictionsChangedListener: OnUxRestrictionsChangedListener

unregisterListener

public void unregisterListener ()

Unregisters the registered OnUxRestrictionsChangedListener