From 6d272892e2d865b50b08ecc3072188281e6c96ff Mon Sep 17 00:00:00 2001 From: Jonathan Peppers Date: Fri, 27 Nov 2026 14:33:46 -0600 Subject: [PATCH] Fix TV ads and interactive app documentation Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> --- .../TvAdManager+TvAdServiceCallback.xml | 2 +- .../TvAdService+Session.xml | 4 ++-- docs/xml/Android.Media.TV.Ads/TvAdService.xml | 2 +- .../Android.Media.TV.Ads/TvAdServiceInfo.xml | 2 +- ...vAdView+IOnUnhandledInputEventListener.xml | 2 +- .../TvAdView+TvAdCallback.xml | 2 +- docs/xml/Android.Media.TV.Ads/TvAdView.xml | 11 +++++----- .../AppLinkInfo.xml | 4 ++-- .../InteractiveAppType.xml | 2 +- ...iveAppManager+TvInteractiveAppCallback.xml | 2 +- .../TvInteractiveAppService+Session.xml | 6 +++--- .../TvInteractiveAppService.xml | 4 ++-- .../TvInteractiveAppServiceInfo.xml | 8 ++++---- ...activeAppView+TvInteractiveAppCallback.xml | 2 +- ...veAppView+UnhandledInputEventEventArgs.xml | 12 +++++------ .../TvInteractiveAppView.xml | 20 +++++++++---------- 16 files changed, 43 insertions(+), 42 deletions(-) diff --git a/docs/xml/Android.Media.TV.Ads/TvAdManager+TvAdServiceCallback.xml b/docs/xml/Android.Media.TV.Ads/TvAdManager+TvAdServiceCallback.xml index f46c6701d..0734adfd5 100644 --- a/docs/xml/Android.Media.TV.Ads/TvAdManager+TvAdServiceCallback.xml +++ b/docs/xml/Android.Media.TV.Ads/TvAdManager+TvAdServiceCallback.xml @@ -85,7 +85,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. diff --git a/docs/xml/Android.Media.TV.Ads/TvAdService+Session.xml b/docs/xml/Android.Media.TV.Ads/TvAdService+Session.xml index dd98f31e5..4939ac57f 100644 --- a/docs/xml/Android.Media.TV.Ads/TvAdService+Session.xml +++ b/docs/xml/Android.Media.TV.Ads/TvAdService+Session.xml @@ -112,7 +112,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. @@ -762,7 +762,7 @@ The value in event.getKeyCode(). Number of pairs as returned by event.getRepeatCount(). - The repeated key event received by the session. This value can be . + The multiple-action key event received by the session. This value can be . Called when a user's interaction with an analog control, such as flinging a trackball, generates simulated down/up events for the same key multiple times in quick succession. If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false. diff --git a/docs/xml/Android.Media.TV.Ads/TvAdService.xml b/docs/xml/Android.Media.TV.Ads/TvAdService.xml index e06011cf3..1d606e038 100644 --- a/docs/xml/Android.Media.TV.Ads/TvAdService.xml +++ b/docs/xml/Android.Media.TV.Ads/TvAdService.xml @@ -89,7 +89,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. diff --git a/docs/xml/Android.Media.TV.Ads/TvAdServiceInfo.xml b/docs/xml/Android.Media.TV.Ads/TvAdServiceInfo.xml index 675aac609..7fb1c0b36 100644 --- a/docs/xml/Android.Media.TV.Ads/TvAdServiceInfo.xml +++ b/docs/xml/Android.Media.TV.Ads/TvAdServiceInfo.xml @@ -162,7 +162,7 @@ Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. - a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR + 0. This implementation does not report special object types. Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit. Android reference for android.media.tv.ad.TvAdServiceInfo.describeContents. diff --git a/docs/xml/Android.Media.TV.Ads/TvAdView+IOnUnhandledInputEventListener.xml b/docs/xml/Android.Media.TV.Ads/TvAdView+IOnUnhandledInputEventListener.xml index 86710beec..461fb98ed 100644 --- a/docs/xml/Android.Media.TV.Ads/TvAdView+IOnUnhandledInputEventListener.xml +++ b/docs/xml/Android.Media.TV.Ads/TvAdView+IOnUnhandledInputEventListener.xml @@ -76,7 +76,7 @@ - The input event that the TV advertisement service did not handle. + The input event passed to the listener. The input event. Called when an input event was not handled by the TV AD service. If you handled the event, return true. If you want to allow the event to diff --git a/docs/xml/Android.Media.TV.Ads/TvAdView+TvAdCallback.xml b/docs/xml/Android.Media.TV.Ads/TvAdView+TvAdCallback.xml index 0c521062f..187c4b8c4 100644 --- a/docs/xml/Android.Media.TV.Ads/TvAdView+TvAdCallback.xml +++ b/docs/xml/Android.Media.TV.Ads/TvAdView+TvAdCallback.xml @@ -85,7 +85,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. diff --git a/docs/xml/Android.Media.TV.Ads/TvAdView.xml b/docs/xml/Android.Media.TV.Ads/TvAdView.xml index 7a6976ac6..bae63c41b 100644 --- a/docs/xml/Android.Media.TV.Ads/TvAdView.xml +++ b/docs/xml/Android.Media.TV.Ads/TvAdView.xml @@ -133,7 +133,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. @@ -679,6 +679,7 @@ Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overridden by subclasses to provide accurate and efficient measurement of their contents. CONTRACT: When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an IllegalStateException, thrown by measure(int, int). Calling the superclass' onMeasure(int, int) is a valid use. The base class implementation of measure defaults to the background size, unless a larger size is allowed by the MeasureSpec. Subclasses should override onMeasure(int, int) to provide better measurements of their content. + The preceding default-size description applies to the generic implementation. This override measures its child with and , then resolves this view's dimensions from the child's measured size and state. If this method is overridden, it is the subclass's responsibility to make sure the measured height and width are at least the view's minimum height and width (getSuggestedMinimumHeight() and getSuggestedMinimumWidth()). Android reference for android.media.tv.ad.TvAdView.onMeasure. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -712,7 +713,7 @@ - The input event that the registered listener did not handle. + The input event to handle. The input event. Called when an unhandled input event also has not been handled by the user provided callback. @@ -779,8 +780,8 @@ Android.Media.TV.Ads.TvAdView+IOnUnhandledInputEventListener - Gets the OnUnhandledInputEventListener. - The listener for input events not handled by the TV advertisement service, or if no listener is set or the listener has been cleared. + Gets or sets the listener for unhandled input events. + The listener called when unhandled input events are dispatched, or if no listener is set or the listener has been cleared. Gets the OnUnhandledInputEventListener. Returns null if the listener is not set or is cleared. @@ -1237,7 +1238,7 @@ - This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread. + The executor used to dispatch calls to . This value cannot be . To dispatch callbacks on the main thread, use . Otherwise, provide an executor that dispatches to an appropriate thread. the callback to receive events. MUST NOT be null. Sets the callback to be invoked when an event is dispatched to this TvAdView. diff --git a/docs/xml/Android.Media.TV.Interactive/AppLinkInfo.xml b/docs/xml/Android.Media.TV.Interactive/AppLinkInfo.xml index 33344b1de..aa63f5b58 100644 --- a/docs/xml/Android.Media.TV.Interactive/AppLinkInfo.xml +++ b/docs/xml/Android.Media.TV.Interactive/AppLinkInfo.xml @@ -205,10 +205,10 @@ Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. - a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR + 0. This implementation does not report special object types. Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit. - In Android 16, this implementation returns 0. + This implementation returns 0. Android reference for android.media.tv.interactive.AppLinkInfo.describeContents. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Media.TV.Interactive/InteractiveAppType.xml b/docs/xml/Android.Media.TV.Interactive/InteractiveAppType.xml index b845bfd6a..0cd386df7 100644 --- a/docs/xml/Android.Media.TV.Interactive/InteractiveAppType.xml +++ b/docs/xml/Android.Media.TV.Interactive/InteractiveAppType.xml @@ -13,7 +13,7 @@ Identifies the TV interactive app types supported by a service. - This .NET enum represents the INTERACTIVE_APP_TYPE_* constants in . The service information exposes supported types as a bit mask and lists custom type names separately. + This .NET enum represents the INTERACTIVE_APP_TYPE_* constants in . The service information exposes supported types as a bit mask. Starting with Android 14 (API level 34), it lists custom type names separately. See the Android supported app types reference. diff --git a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppManager+TvInteractiveAppCallback.xml b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppManager+TvInteractiveAppCallback.xml index 8b55547fc..5a02e8cae 100644 --- a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppManager+TvInteractiveAppCallback.xml +++ b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppManager+TvInteractiveAppCallback.xml @@ -86,7 +86,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. diff --git a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService+Session.xml b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService+Session.xml index b2e00179d..07121b034 100644 --- a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService+Session.xml +++ b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService+Session.xml @@ -115,7 +115,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. @@ -1361,7 +1361,7 @@ The key code reported by . The number of key-down and key-up pairs reported by the repeat count of . - The event that contains the repeated key presses. + The multiple-action key event received by the session. Called when a user's interaction with an analog control, such as flinging a trackball, generates simulated down/up events for the same key multiple times in quick succession. If you handled the event, return true. If you want to allow the event to be handled by the next receiver, return false. @@ -3121,7 +3121,7 @@ - Value is one of the following: TvInputManager.VIDEO_UNAVAILABLE_REASON_UNKNOWN; TvInputManager.VIDEO_UNAVAILABLE_REASON_TUNING; TvInputManager.VIDEO_UNAVAILABLE_REASON_WEAK_SIGNAL; TvInputManager.VIDEO_UNAVAILABLE_REASON_BUFFERING; TvInputManager.VIDEO_UNAVAILABLE_REASON_AUDIO_ONLY; TvInputManager.VIDEO_UNAVAILABLE_REASON_NOT_CONNECTED; TvInputManager.VIDEO_UNAVAILABLE_REASON_INSUFFICIENT_RESOURCE; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_INSUFFICIENT_OUTPUT_PROTECTION; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_PVR_RECORDING_NOT_ALLOWED; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_LICENSE_EXPIRED; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_NEED_ACTIVATION; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_NEED_PAIRING; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_NO_CARD; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_CARD_MUTE; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_CARD_INVALID; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_BLACKOUT; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_REBOOTING; TvInputManager.VIDEO_UNAVAILABLE_REASON_CAS_UNKNOWN; TvInputManager.VIDEO_UNAVAILABLE_REASON_STOPPED + The video-unavailable reason reported by the TV input. Public values are represented by . The value is supported starting with Android 16 (API level 36). Called when video is unavailable. Called when video is unavailable. diff --git a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService.xml b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService.xml index d634739d3..16e04c202 100644 --- a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService.xml +++ b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppService.xml @@ -92,7 +92,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. @@ -873,7 +873,7 @@ The ID of the TV Interactive App associated with the session. This value cannot be null. - The type of the TV Interactive App associated with the session. Value is one of the following: TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_HBBTV; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_ATSC; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_GINGA; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_TARGETED_AD; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_OTHER + The type of the TV Interactive App associated with the session. Value is one of the following: TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_HBBTV; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_ATSC; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_GINGA; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_TARGETED_AD; TvInteractiveAppServiceInfo.INTERACTIVE_APP_TYPE_OTHER. The targeted ad and other types are available starting with Android 14 (API level 34). Returns a concrete implementation of Session. The new session, or if the service cannot create it. diff --git a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppServiceInfo.xml b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppServiceInfo.xml index f9db1e502..7c7161059 100644 --- a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppServiceInfo.xml +++ b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppServiceInfo.xml @@ -129,7 +129,7 @@ Gets the creator that reads interactive app service information from a parcel. The parcel creator for objects and arrays. - The creator reads the service's resolve information, ID, supported app types, and custom type names from a parcel. + The creator reads the service's resolve information, ID, and supported app types from a parcel. On Android 14 (API level 34) and later, it also reads custom type names. @@ -203,10 +203,10 @@ Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. - a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR + 0. This implementation does not report special object types. Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of writeToParcel(Parcel,int), the return value of this method must include the CONTENTS_FILE_DESCRIPTOR bit. - In Android 16, this implementation returns 0. + This implementation returns 0. Android reference for android.media.tv.interactive.TvInteractiveAppServiceInfo.describeContents. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -756,7 +756,7 @@ Additional flags about how the object should be written. May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of the following: Writes this interactive app service information to a parcel. - The parcel contains the service's resolve information, ID, supported app types, and custom app type names. + The parcel contains the service's resolve information, ID, and supported app types. On Android 14 (API level 34) and later, it also contains custom app type names. Android reference for android.media.tv.interactive.TvInteractiveAppServiceInfo.writeToParcel. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. diff --git a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+TvInteractiveAppCallback.xml b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+TvInteractiveAppCallback.xml index 8a0f53891..0bfc65249 100644 --- a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+TvInteractiveAppCallback.xml +++ b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+TvInteractiveAppCallback.xml @@ -86,7 +86,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. diff --git a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+UnhandledInputEventEventArgs.xml b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+UnhandledInputEventEventArgs.xml index 90a74c31a..2e447d26f 100644 --- a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+UnhandledInputEventEventArgs.xml +++ b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView+UnhandledInputEventEventArgs.xml @@ -18,7 +18,7 @@ - Provides an input event and a handled state for the listener method. + Stores an input event and a handled state. The .NET binding generator creates this type for . has no .NET event that creates these arguments, because takes an executor and a listener. To handle input events that the interactive app does not handle, implement , return from when the listener consumes the event, and pass the listener to . @@ -41,7 +41,7 @@ The initial value of . - The input event that the interactive application did not handle. + The input event to store in the event data. Creates event data with the supplied input event and handled state. The constructor stores both arguments. It does not dispatch the input event. @@ -62,10 +62,10 @@ Android.Views.InputEvent - Gets the input event passed to the listener. + Gets the input event supplied to the constructor. The input event supplied to the constructor. - Inspect this event to decide whether the handler can consume it. Reading the property does not change the handled state. + This property returns the input event supplied to the constructor. Reading it does not change the handled state. @@ -83,8 +83,8 @@ System.Boolean - Gets or sets whether the input event is handled. - if the listener consumes the input event; otherwise, . + Gets or sets the handled state stored in the event data. + if the input event is marked as handled; otherwise, . The constructor sets the initial value. has no .NET event that reads this property, so setting it does not change how the view handles the input event. diff --git a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView.xml b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView.xml index 1c7076bb7..68d777133 100644 --- a/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView.xml +++ b/docs/xml/Android.Media.TV.Interactive/TvInteractiveAppView.xml @@ -133,7 +133,7 @@ A JNI reference to the Java object. - Specifies whether ownership of the JNI reference transfers to this instance. + Specifies how to handle the incoming JNI reference and whether to register the managed peer. Creates a managed instance that represents an existing Java object. The runtime calls this constructor to create a managed representation of an existing Java object. @@ -1238,7 +1238,7 @@ This is called when the view is attached to a window. This is called when the view is attached to a window. At this point it has a Surface and will start drawing. Note that this function is guaranteed to be called before onDraw(android.graphics.Canvas), however it may be called any time before the first onDraw -- including before or after onMeasure(int, int). If you override this method you must call through to the superclass implementation. - In Android 16, this implementation calls the base method, then requests the session media view if a session is available and the media view has not been created. + This implementation calls the base method, then requests the session media view if a session is available and the media view has not been created. Android reference for android.media.tv.interactive.TvInteractiveAppView.onAttachedToWindow. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -1272,7 +1272,7 @@ This is called when the view is detached from a window. This is called when the view is detached from a window. At this point it no longer has a surface for drawing. If you override this method you must call through to the superclass implementation. - In Android 16, this implementation requests removal of the session media view, if one was created, before it calls the base method. + This implementation requests removal of the session media view, if one was created, before it calls the base method. Android reference for android.media.tv.interactive.TvInteractiveAppView.onDetachedFromWindow. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -1317,7 +1317,7 @@ Called from layout when this view should assign a size and position to each of its children. Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. - In Android 16, this implementation lays out its child with the surface bounds requested by the session, if present. Otherwise, it uses bounds from (0, 0) to (right - left, bottom - top). + This implementation lays out its child with the surface bounds requested by the session, if present. Otherwise, it uses bounds from (0, 0) to (right - left, bottom - top). Android reference for android.media.tv.interactive.TvInteractiveAppView.onLayout. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -1358,7 +1358,7 @@ Measure the view and its content to determine the measured width and the measured height. This method is invoked by measure(int, int) and should be overridden by subclasses to provide accurate and efficient measurement of their contents. CONTRACT: When overriding this method, you must call setMeasuredDimension(int, int) to store the measured width and height of this view. Failure to do so will trigger an IllegalStateException, thrown by measure(int, int). Calling the superclass' onMeasure(int, int) is a valid use. The base class implementation of measure defaults to the background size, unless a larger size is allowed by the MeasureSpec. Subclasses should override onMeasure(int, int) to provide better measurements of their content. - The preceding default-size description applies to the generic implementation. In Android 16, this override measures its child with and , then resolves this view's dimensions from the child's measured size and state. + The preceding default-size description applies to the generic implementation. This override measures its child with and , then resolves this view's dimensions from the child's measured size and state. If this method is overridden, it is the subclass's responsibility to make sure the measured height and width are at least the view's minimum height and width (getSuggestedMinimumHeight() and getSuggestedMinimumWidth()). Android reference for android.media.tv.interactive.TvInteractiveAppView.onMeasure. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -1496,7 +1496,7 @@ Called when the visibility of the view or an ancestor of the view has changed. Called when the visibility of the view or an ancestor of the view has changed. - In Android 16, this implementation forwards to its child . It requests a session media view when visible and attached to a window with a session, and requests removal for other visibility states. + This implementation forwards to its child . It requests a session media view when visible and attached to a window with a session, and requests removal for other visibility states. Android reference for android.media.tv.interactive.TvInteractiveAppView.onVisibilityChanged. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License. @@ -2299,7 +2299,7 @@ - This value cannot be null. Callback and listener events are dispatched through this Executor, providing an easy way to control which thread is used. To dispatch events through the main thread of your application, you can use Context.getMainExecutor(). Otherwise, provide an Executor that dispatches to an appropriate thread. + The executor used to dispatch some calls to . This value cannot be . The view invokes some callbacks directly, such as , without using this executor. To dispatch callbacks that use the executor on the main thread, use . Otherwise, provide an executor that dispatches to an appropriate thread. the callback to receive events. MUST NOT be null. Sets the callback to be invoked when an event is dispatched to this TvInteractiveAppView. @@ -2337,11 +2337,11 @@ - The required executor argument. The Android 16 implementation does not use this argument to dispatch unhandled input events. + The required executor argument. The implementation does not use this argument to dispatch unhandled input events. The callback to be invoked when the unhandled input event is received. This value cannot be null. - Sets a listener to be invoked when an input event is not handled by the TV Interactive App. + Sets a listener for unhandled input events. - The listener gets input events that the interactive app did not handle. In Android 16, calls the listener directly; this method does not schedule it on . + calls the listener directly; it does not schedule the call on . Android reference for android.media.tv.interactive.TvInteractiveAppView.setOnUnhandledInputEventListener. Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.