Stay organized with collections
Save and categorize content based on your preferences.
Callback
interface Callback
Known Direct Subclasses
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 Unit |
Called when the given InputQueue is now associated with the thread making this call, so it can start receiving events from it.
|
abstract Unit |
Called when the given InputQueue is no longer associated with the thread and thus not dispatching events.
|
Public methods
abstract fun onInputQueueCreated(queue: InputQueue!): Unit
Called when the given InputQueue is now associated with the thread making this call, so it can start receiving events from it.
abstract fun onInputQueueDestroyed(queue: InputQueue!): Unit
Called when the given InputQueue is no longer associated with the thread and thus not dispatching events.
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-10 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-10 UTC."],[],[],null,["# InputQueue.Callback\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nCallback\n========\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/view/InputQueue.Callback \"View this page in Java\") \n\n```\ninterface Callback\n```\n\n|---------------------------------------|\n| [android.view.InputQueue.Callback](#) |\n\n|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Known Direct Subclasses [NativeActivity](../app/NativeActivity.html#) |-----------------------------------------------|------------------------------------------------------------------------------------------| | [NativeActivity](../app/NativeActivity.html#) | Convenience for implementing an activity that will be implemented purely in native code. | |\n\nInterface to receive notification of when an InputQueue is associated and dissociated with a thread.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onInputQueueCreated](#onInputQueueCreated(android.view.InputQueue))`(`queue:` `[InputQueue](/reference/kotlin/android/view/InputQueue)!`)` Called when the given InputQueue is now associated with the thread making this call, so it can start receiving events from it. |\n| abstract [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html) | [onInputQueueDestroyed](#onInputQueueDestroyed(android.view.InputQueue))`(`queue:` `[InputQueue](/reference/kotlin/android/view/InputQueue)!`)` Called when the given InputQueue is no longer associated with the thread and thus not dispatching events. |\n\nPublic methods\n--------------\n\n### onInputQueueCreated\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onInputQueueCreated(queue: InputQueue!): Unit\n```\n\nCalled when the given InputQueue is now associated with the thread making this call, so it can start receiving events from it. \n\n### onInputQueueDestroyed\n\nAdded in [API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onInputQueueDestroyed(queue: InputQueue!): Unit\n```\n\nCalled when the given InputQueue is no longer associated with the thread and thus not dispatching events."]]