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 TV AD service.
|
Public methods
abstract fun onUnhandledInputEvent(event: InputEvent): Boolean
Called when an input event was not handled by the TV AD service.
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 . |
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-03-13 UTC.
[null,null,["Last updated 2025-03-13 UTC."],[],[],null,["# TvAdView.OnUnhandledInputEventListener\n\nAdded in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nOnUnhandledInputEventListener\n=============================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/media/tv/ad/TvAdView.OnUnhandledInputEventListener \"View this page in Java\") \n\n```\ninterface OnUnhandledInputEventListener\n```\n\n|-----------------------------------------------------------------|\n| [android.media.tv.ad.TvAdView.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 TV AD service. |\n\nPublic methods\n--------------\n\n### onUnhandledInputEvent\n\nAdded in [API level 36](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 TV AD service.\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. This value cannot be `null`. |\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`. |"]]