Condividi tramite


View.OnWindowVisibilityChanged(ViewStates) Method

Definition

Called when the window containing has change its visibility (between #GONE, #INVISIBLE, and #VISIBLE).

[Android.Runtime.Register("onWindowVisibilityChanged", "(I)V", "GetOnWindowVisibilityChanged_IHandler")]
protected virtual void OnWindowVisibilityChanged (Android.Views.ViewStates visibility);
[<Android.Runtime.Register("onWindowVisibilityChanged", "(I)V", "GetOnWindowVisibilityChanged_IHandler")>]
abstract member OnWindowVisibilityChanged : Android.Views.ViewStates -> unit
override this.OnWindowVisibilityChanged : Android.Views.ViewStates -> unit

Parameters

visibility
ViewStates

The new visibility of the window.

Attributes

Remarks

Called when the window containing has change its visibility (between #GONE, #INVISIBLE, and #VISIBLE). Note that this tells you whether or not your window is being made visible to the window manager; this does <em>not</em> tell you whether or not your window is obscured by other windows on the screen, even if it is itself visible.

Java documentation for android.view.View.onWindowVisibilityChanged(int).

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