Google은 흑인 공동체를 위한 인종 간 평등을 진전시키기 위해 노력하고 있습니다. Google에서 어떤 노력을 하고 있는지 확인하세요.
Added in API level 29

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

Added in API level 29
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.

Parameters
appType int: Value is CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION

onAppFocusOwnershipLost

Added in API level 29
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.

Parameters
appType int: Value is CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION