切換導航 多個導航app 切換 管理
OnAppFocusChangedListener
mCarAppFocusManager.addFocusListener(mFocusListener, CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION);
84 public static final int APP_FOCUS_TYPE_NAVIGATION = 1; 85 /** 86 * Represents voice command focus. 87 * @hide 88 */ 89 public static final int APP_FOCUS_TYPE_VOICE_COMMAND = 2; 90 /** 91 * Update this after adding a new app type. 92 * @hide 93 */ 94 public static final int APP_FOCUS_TYPE_MAX = 2; 95 96 /** @hide */ 97 @IntDef({ 98 APP_FOCUS_TYPE_NAVIGATION, 99 APP_FOCUS_TYPE_VOICE_COMMAND 100 })