Język

TvInteractiveAppView.OnVisibilityChanged(View, ViewStates) Method

Definition

Called when the visibility of the view or an ancestor of the view has changed.

[Android.Runtime.Register("onVisibilityChanged", "(Landroid/view/View;I)V", "GetOnVisibilityChanged_Landroid_view_View_IHandler", ApiSince=33)]
public virtual void OnVisibilityChanged(Android.Views.View changedView, Android.Views.ViewStates visibility);
[<Android.Runtime.Register("onVisibilityChanged", "(Landroid/view/View;I)V", "GetOnVisibilityChanged_Landroid_view_View_IHandler", ApiSince=33)>]
override this.OnVisibilityChanged : Android.Views.View * Android.Views.ViewStates -> unit

Parameters

changedView
View

The view whose visibility changed; this can be the interactive app view or one of its ancestors.

visibility
ViewStates

The new visibility, one of View.VISIBLE, View.INVISIBLE or View.GONE. Value is one of the following: View.VISIBLE; View.INVISIBLE; View.GONE

Attributes

Remarks

Called when the visibility of the view or an ancestor of the view has changed.

In Android 16, this implementation forwards visibility to its child SurfaceView. It requests a session media view when visible and attached to a window with a session, and requests removal for other visibility states.

Based on the Android 16 view implementation.

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.

Applies to