Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Methods](https://developer.android.com/reference/android/view/InputQueue.Callback#pubmethods)

# InputQueue.Callback

*** ** * ** ***

` public static interface InputQueue.Callback `   
` `

|---|
| android.view.InputQueue.Callback |

Known indirect subclasses [NativeActivity](https://developer.android.com/reference/android/app/NativeActivity) [NativeActivity](https://developer.android.com/reference/android/app/NativeActivity) Convenience for implementing an activity that will be implemented purely in native code.   

*** ** * ** ***

Interface to receive notification of when an InputQueue is associated and dissociated with a thread.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/view/InputQueue.Callback#onInputQueueCreated(android.view.InputQueue)(https://developer.android.com/reference/android/view/InputQueue queue) ` Called when the given InputQueue is now associated with the thread making this call, so it can start receiving events from it. |
| ` abstract void` | ` https://developer.android.com/reference/android/view/InputQueue.Callback#onInputQueueDestroyed(android.view.InputQueue)(https://developer.android.com/reference/android/view/InputQueue queue) ` Called when the given InputQueue is no longer associated with the thread and thus not dispatching events. |

## Public methods

### onInputQueueCreated

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onInputQueueCreated (InputQueue queue)
```

Called when the given InputQueue is now associated with the thread making this call, so it can start receiving events from it.

<br />

| Parameters ||
|---|---|
| `queue` | `InputQueue` <br /> |

### onInputQueueDestroyed

Added in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onInputQueueDestroyed (InputQueue queue)
```

Called when the given InputQueue is no longer associated with the thread and thus not dispatching events.

<br />

| Parameters ||
|---|---|
| `queue` | `InputQueue` <br /> |