# CarAppFocusManager.OnAppFocusChangedListener

# CarAppFocusManager.OnAppFocusChangedListener

`
public
static


interface
CarAppFocusManager.OnAppFocusChangedListener
`  
`


`

|----------------------------------------------------------|
| android.car.CarAppFocusManager.OnAppFocusChangedListener |

<br />

*** ** * ** ***

Listener to get notification for app getting information on application type status changes.

## Summary

|                                                                                                             ### Public methods                                                                                                              ||
|------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onAppFocusChanged](https://developer.android.com/reference/android/car/CarAppFocusManager.OnAppFocusChangedListener#onAppFocusChanged(int,%20boolean))`(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](https://developer.android.com/reference/android/car/CarAppFocusManager)instance causing the change will not get this notification.

Note that this call can happen for app focus grant, release, and ownership change.

<br />

|                                                                                                           Parameters                                                                                                           ||
|-----------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `appType` | `int`: appType where the focus change has happened. Value is[CarAppFocusManager.APP_FOCUS_TYPE_NAVIGATION](https://developer.android.com/reference/android/car/CarAppFocusManager#APP_FOCUS_TYPE_NAVIGATION) <br /> |
| `active`  | `boolean`:`true`if there is an active owner for the focus. <br />                                                                                                                                                   |