Stay organized with collections
Save and categorize content based on your preferences.
interface OnUnhandledInputEventListener
Interface definition for a callback to be invoked when the unhandled input event is received.
Summary
Public methods |
abstract Boolean |
Called when an input event was not handled by the bound TV input.
|
Public methods
abstract fun onUnhandledInputEvent(event: InputEvent!): Boolean
Called when an input event was not handled by the bound TV input.
This is called asynchronously from where the event is dispatched. It gives the host application a chance to handle the unhandled input events.
Return |
Boolean |
If you handled the event, return true . If you want to allow the event to be handled by the next receiver, return false . |
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,["# TvView.OnUnhandledInputEventListener\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnUnhandledInputEventListener\n=============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/tv/TvView.OnUnhandledInputEventListener \"View this page in Java\") \n\n```\ninterface OnUnhandledInputEventListener\n```\n\n|------------------------------------------------------------|\n| [android.media.tv.TvView.OnUnhandledInputEventListener](#) |\n\nInterface definition for a callback to be invoked when the unhandled input event is received.\n\nSummary\n-------\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [onUnhandledInputEvent](#onUnhandledInputEvent(android.view.InputEvent))`(`event:` `[InputEvent](../../view/InputEvent.html#)!`)` Called when an input event was not handled by the bound TV input. |\n\nPublic methods\n--------------\n\n### onUnhandledInputEvent\n\nAdded in [API level 21](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun onUnhandledInputEvent(event: InputEvent!): Boolean\n```\n\nCalled when an input event was not handled by the bound TV input.\n\nThis is called asynchronously from where the event is dispatched. It gives the host application a chance to handle the unhandled input events.\n\n| Parameters ||\n|---------|--------------------------------------------------------------|\n| `event` | [InputEvent](../../view/InputEvent.html#)!: The input event. |\n\n| Return ||\n|------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | If you handled the event, return `true`. If you want to allow the event to be handled by the next receiver, return `false`. |"]]