Share via


View.OnDisplayHint(Int32) Method

Definition

Gives this view a hint about whether is displayed or not.

[Android.Runtime.Register("onDisplayHint", "(I)V", "GetOnDisplayHint_IHandler")]
protected virtual void OnDisplayHint (int hint);
[<Android.Runtime.Register("onDisplayHint", "(I)V", "GetOnDisplayHint_IHandler")>]
abstract member OnDisplayHint : int -> unit
override this.OnDisplayHint : int -> unit

Parameters

hint
Int32

A hint about whether or not this view is displayed: #VISIBLE or #INVISIBLE.

Attributes

Remarks

Gives this view a hint about whether is displayed or not. For instance, when a View moves out of the screen, it might receives a display hint indicating the view is not displayed. Applications should not <em>rely</em> on this hint as there is no guarantee that they will receive one.

Java documentation for android.view.View.onDisplayHint(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