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.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
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 2025-02-17 UTC.
[null,null,["Last updated 2025-02-17 UTC."],[],[],null,["# CarUxRestrictionsManager\n\nSummary: [Nested Classes](#nestedclasses) \\| [Methods](#pubmethods) \\| [Inherited Methods](#inhmethods) \n\nCarUxRestrictionsManager\n========================\n\n\n`\npublic\n\nfinal\n\nclass\nCarUxRestrictionsManager\n`\n\n\n`\n\nextends Object\n\n\n`\n\n`\n\n\n`\n\n|---|---------------------------------------------------|\n| java.lang.Object ||\n| ↳ | android.car.drivingstate.CarUxRestrictionsManager |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nAPI to register and get the User Experience restrictions imposed based on the car's driving\nstate.\n\nSummary\n-------\n\n| ### Nested classes ||\n|--------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` interface` | [CarUxRestrictionsManager.OnUxRestrictionsChangedListener](/reference/android/car/drivingstate/CarUxRestrictionsManager.OnUxRestrictionsChangedListener) Listener Interface for clients to implement to get updated on driving state related changes. |\n\n| ### Public methods ||\n|-------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` `[CarUxRestrictions](/reference/android/car/drivingstate/CarUxRestrictions) | ` `[getCurrentCarUxRestrictions](/reference/android/car/drivingstate/CarUxRestrictionsManager#getCurrentCarUxRestrictions())`() ` Gets the current UX restrictions ([CarUxRestrictions](/reference/android/car/drivingstate/CarUxRestrictions)) in place. |\n| ` void` | ` `[registerListener](/reference/android/car/drivingstate/CarUxRestrictionsManager#registerListener(android.car.drivingstate.CarUxRestrictionsManager.OnUxRestrictionsChangedListener))`(`[CarUxRestrictionsManager.OnUxRestrictionsChangedListener](/reference/android/car/drivingstate/CarUxRestrictionsManager.OnUxRestrictionsChangedListener)` listener) ` Registers a [OnUxRestrictionsChangedListener](/reference/android/car/drivingstate/CarUxRestrictionsManager.OnUxRestrictionsChangedListener) for listening to changes in the UX Restrictions to adhere to. |\n| ` void` | ` `[unregisterListener](/reference/android/car/drivingstate/CarUxRestrictionsManager#unregisterListener())`() ` Unregisters the registered [OnUxRestrictionsChangedListener](/reference/android/car/drivingstate/CarUxRestrictionsManager.OnUxRestrictionsChangedListener) |\n\n| ### Inherited methods |\n|-----------------------|---|\n| From class ` java.lang.Object ` |-------------------|-------------------------------| | ` Object` | ` clone() ` | | ` boolean` | ` equals(Object arg0) ` | | ` void` | ` finalize() ` | | ` final Class\u003c?\u003e` | ` getClass() ` | | ` int` | ` hashCode() ` | | ` final void` | ` notify() ` | | ` final void` | ` notifyAll() ` | | ` String` | ` toString() ` | | ` final void` | ` wait(long arg0, int arg1) ` | | ` final void` | ` wait(long arg0) ` | | ` final void` | ` wait() ` | ||\n\nPublic methods\n--------------\n\n### getCurrentCarUxRestrictions\n\n```\npublic CarUxRestrictions getCurrentCarUxRestrictions ()\n```\n\nGets the current UX restrictions ([CarUxRestrictions](/reference/android/car/drivingstate/CarUxRestrictions)) in place.\n\n\u003cbr /\u003e\n\n| Returns ||\n|----------------------------------------------------------------------------|---------------------------------------------------|\n| [CarUxRestrictions](/reference/android/car/drivingstate/CarUxRestrictions) | current UX restrictions that is in effect. \u003cbr /\u003e |\n\n### registerListener\n\n```\npublic void registerListener (CarUxRestrictionsManager.OnUxRestrictionsChangedListener listener)\n```\n\nRegisters a [OnUxRestrictionsChangedListener](/reference/android/car/drivingstate/CarUxRestrictionsManager.OnUxRestrictionsChangedListener) for listening to changes in the\nUX Restrictions to adhere to.\n\n\nIf a listener has already been registered, it has to be unregistered before registering\nthe new one.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `listener` | `CarUxRestrictionsManager.OnUxRestrictionsChangedListener`: [OnUxRestrictionsChangedListener](/reference/android/car/drivingstate/CarUxRestrictionsManager.OnUxRestrictionsChangedListener) \u003cbr /\u003e |\n\n### unregisterListener\n\n```\npublic void unregisterListener ()\n```\n\nUnregisters the registered [OnUxRestrictionsChangedListener](/reference/android/car/drivingstate/CarUxRestrictionsManager.OnUxRestrictionsChangedListener)\n\n\u003cbr /\u003e"]]