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 ( |
void
|
registerListener(CarUxRestrictionsManager.OnUxRestrictionsChangedListener listener)
Registers a |
void
|
unregisterListener()
Unregisters the registered |
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
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.