The second Android 11 Developer Preview is now available, test it out and share your feedback.

android.car.drivingstate

Annotations

CarUxRestrictions.CarUxRestrictionsInfo  

Interfaces

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

Classes

CarUxRestrictions Car UX Restrictions event. 
CarUxRestrictions.Builder Builder class for CarUxRestrictions  
CarUxRestrictionsManager API to register and get the User Experience restrictions imposed based on the car's driving state.