Stay organized with collections
Save and categorize content based on your preferences.
CarAppFocusManager.OnAppFocusChangedListener
public
static
interface
CarAppFocusManager.OnAppFocusChangedListener
android.car.CarAppFocusManager.OnAppFocusChangedListener
|
Listener to get notification for app getting information on application type status changes.
Summary
Public methods |
abstract
void
|
onAppFocusChanged(int appType, boolean active)
Application focus has changed.
|
Public methods
onAppFocusChanged
public abstract void onAppFocusChanged (int appType,
boolean active)
Application focus has changed. Note that CarAppFocusManager
instance
causing the change will not get this notification.
Note that this call can happen for app focus grant, release, and ownership change.
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-17 UTC."],[],[],null,["# CarAppFocusManager.OnAppFocusChangedListener\n============================================\n\n\n`\npublic\nstatic\n\n\ninterface\nCarAppFocusManager.OnAppFocusChangedListener\n`\n\n\n`\n\n\n`\n\n|----------------------------------------------------------|\n| android.car.CarAppFocusManager.OnAppFocusChangedListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener to get notification for app getting information on application type status changes.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onAppFocusChanged](/reference/android/car/CarAppFocusManager.OnAppFocusChangedListener#onAppFocusChanged(int,%20boolean))`(int appType, boolean active) ` Application focus has changed. |\n\nPublic methods\n--------------\n\n### onAppFocusChanged\n\n```\npublic abstract void onAppFocusChanged (int appType, \n boolean active)\n```\n\nApplication focus has changed. Note that [CarAppFocusManager](/reference/android/car/CarAppFocusManager) instance\ncausing the change will not get this notification.\n\nNote that this call can happen for app focus grant, release, and ownership change.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `appType` | `int`: appType where the focus change has happened. Value is [CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION](/reference/android/car/CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION) \u003cbr /\u003e |\n| `active` | `boolean`: `true` if there is an active owner for the focus. \u003cbr /\u003e |"]]