Stay organized with collections
Save and categorize content based on your preferences.
CarAppFocusManager.OnAppFocusOwnershipCallback
public
static
interface
CarAppFocusManager.OnAppFocusOwnershipCallback
android.car.CarAppFocusManager.OnAppFocusOwnershipCallback
|
Listener to get notification for app getting information on app type ownership loss.
Summary
Public methods |
abstract
void
|
onAppFocusOwnershipGranted(int appType)
Granted ownership for the focus, which happens when app has requested the focus.
|
abstract
void
|
onAppFocusOwnershipLost(int appType)
Lost ownership for the focus, which happens when other app has set the focus.
|
Public methods
onAppFocusOwnershipGranted
public abstract void onAppFocusOwnershipGranted (int appType)
Granted ownership for the focus, which happens when app has requested the focus.
The app getting focus can start the action associated with the focus.
For example, navigation app can start navigation
upon getting this for CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION
.
onAppFocusOwnershipLost
public abstract void onAppFocusOwnershipLost (int appType)
Lost ownership for the focus, which happens when other app has set the focus.
The app losing focus should stop the action associated with the focus.
For example, navigation app currently running active navigation should stop navigation
upon getting this for CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION
.
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.OnAppFocusOwnershipCallback\n==============================================\n\n\n`\npublic\nstatic\n\n\ninterface\nCarAppFocusManager.OnAppFocusOwnershipCallback\n`\n\n\n`\n\n\n`\n\n|------------------------------------------------------------|\n| android.car.CarAppFocusManager.OnAppFocusOwnershipCallback |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\n\nListener to get notification for app getting information on app type ownership loss.\n\nSummary\n-------\n\n| ### Public methods ||\n|------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ` abstract void` | ` `[onAppFocusOwnershipGranted](/reference/android/car/CarAppFocusManager.OnAppFocusOwnershipCallback#onAppFocusOwnershipGranted(int))`(int appType) ` Granted ownership for the focus, which happens when app has requested the focus. |\n| ` abstract void` | ` `[onAppFocusOwnershipLost](/reference/android/car/CarAppFocusManager.OnAppFocusOwnershipCallback#onAppFocusOwnershipLost(int))`(int appType) ` Lost ownership for the focus, which happens when other app has set the focus. |\n\nPublic methods\n--------------\n\n### onAppFocusOwnershipGranted\n\n```\npublic abstract void onAppFocusOwnershipGranted (int appType)\n```\n\nGranted ownership for the focus, which happens when app has requested the focus.\nThe app getting focus can start the action associated with the focus.\nFor example, navigation app can start navigation\nupon getting this for [CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION](/reference/android/car/CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `appType` | `int`: Value is [CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION](/reference/android/car/CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION) \u003cbr /\u003e |\n\n### onAppFocusOwnershipLost\n\n```\npublic abstract void onAppFocusOwnershipLost (int appType)\n```\n\nLost ownership for the focus, which happens when other app has set the focus.\nThe app losing focus should stop the action associated with the focus.\nFor example, navigation app currently running active navigation should stop navigation\nupon getting this for [CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION](/reference/android/car/CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION).\n\n\u003cbr /\u003e\n\n| Parameters ||\n|-----------|--------------------------------------------------------------------------------------------------------------------------------------------|\n| `appType` | `int`: Value is [CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION](/reference/android/car/CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION) \u003cbr /\u003e |"]]