Stay organized with collections
Save and categorize content based on your preferences.
CarOccupantZoneManager.OccupantZoneConfigChangeListener
public
static
interface
CarOccupantZoneManager.OccupantZoneConfigChangeListener
android.car.CarOccupantZoneManager.OccupantZoneConfigChangeListener
|
Listener to monitor any Occupant Zone configuration change. The configuration change can
involve some displays removed or new displays added. Also it can happen when assigned user
for any zone changes.
Summary
Public methods
onOccupantZoneConfigChanged
public abstract void onOccupantZoneConfigChanged (int changeFlags)
Configuration for occupant zones has changed. Apps should re-check all
occupant zone configs. This can be caused by events like user switching and
display addition / removal.
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,["# CarOccupantZoneManager.OccupantZoneConfigChangeListener\n=======================================================\n\n\n`\npublic\nstatic\n\n\ninterface\nCarOccupantZoneManager.OccupantZoneConfigChangeListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------------------|\n| android.car.CarOccupantZoneManager.OccupantZoneConfigChangeListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener to monitor any Occupant Zone configuration change. The configuration change can\ninvolve some displays removed or new displays added. Also it can happen when assigned user\nfor any zone changes.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onOccupantZoneConfigChanged](/reference/android/car/CarOccupantZoneManager.OccupantZoneConfigChangeListener#onOccupantZoneConfigChanged(int))`(int changeFlags) ` Configuration for occupant zones has changed. |\n\nPublic methods\n--------------\n\n### onOccupantZoneConfigChanged\n\n```\npublic abstract void onOccupantZoneConfigChanged (int changeFlags)\n```\n\nConfiguration for occupant zones has changed. Apps should re-check all\noccupant zone configs. This can be caused by events like user switching and\ndisplay addition / removal.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `changeFlags` | `int`: Reason for the zone change. Value is either `0` or a combination of [CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_DISPLAY](/reference/android/car/CarOccupantZoneManager#ZONE_CONFIG_CHANGE_FLAG_DISPLAY), [CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_USER](/reference/android/car/CarOccupantZoneManager#ZONE_CONFIG_CHANGE_FLAG_USER), and [CarOccupantZoneManager.ZONE_CONFIG_CHANGE_FLAG_AUDIO](/reference/android/car/CarOccupantZoneManager#ZONE_CONFIG_CHANGE_FLAG_AUDIO) \u003cbr /\u003e |"]]