Stay organized with collections
Save and categorize content based on your preferences.
public
static
interface
TvInteractiveAppView.OnUnhandledInputEventListener
android.media.tv.interactive.TvInteractiveAppView.OnUnhandledInputEventListener
|
Interface definition for a callback to be invoked when the unhandled input event is received.
Summary
Public methods
public abstract boolean onUnhandledInputEvent (InputEvent event)
Called when an input event was not handled by the TV Interactive App.
This is called asynchronously from where the event is dispatched. It gives the host
application a chance to handle the unhandled input events.
Parameters |
event |
InputEvent : The input event.
This value cannot be null . |
Returns |
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,["# TvInteractiveAppView.OnUnhandledInputEventListener\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\nTvInteractiveAppView.OnUnhandledInputEventListener\n==================================================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/android/media/tv/interactive/TvInteractiveAppView.OnUnhandledInputEventListener \"View this page in Kotlin\") \\|Java\n\n\n`\npublic\nstatic\n\n\ninterface\nTvInteractiveAppView.OnUnhandledInputEventListener\n`\n\n\n`\n\n\n`\n\n|---------------------------------------------------------------------------------|\n| android.media.tv.interactive.TvInteractiveAppView.OnUnhandledInputEventListener |\n\n\u003cbr /\u003e\n\n*** ** * ** ***\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` | ` `[onUnhandledInputEvent](/reference/android/media/tv/interactive/TvInteractiveAppView.OnUnhandledInputEventListener#onUnhandledInputEvent(android.view.InputEvent))`(`[InputEvent](/reference/android/view/InputEvent)` event) ` Called when an input event was not handled by the TV Interactive App. |\n\nPublic methods\n--------------\n\n### onUnhandledInputEvent\n\nAdded in [API level 33](/guide/topics/manifest/uses-sdk-element#ApiLevels) \n\n```\npublic abstract boolean onUnhandledInputEvent (InputEvent event)\n```\n\nCalled when an input event was not handled by the TV Interactive App.\n\nThis is called asynchronously from where the event is dispatched. It gives the host\napplication a chance to handle the unhandled input events.\n\n\u003cbr /\u003e\n\n| Parameters ||\n|---------|--------------------------------------------------------------------|\n| `event` | `InputEvent`: The input event. This value cannot be `null`. \u003cbr /\u003e |\n\n| Returns ||\n|-----------|------------------------------------------------------------------------------------------------------------------------------------|\n| `boolean` | If you handled the event, return `true`. If you want to allow the event to be handled by the next receiver, return `false`. \u003cbr /\u003e |"]]