Condividi tramite


View.PostInvalidate Method

Definition

Overloads

PostInvalidate(Int32, Int32, Int32, Int32)

Cause an invalidate of the specified area to happen on a subsequent cycle through the event loop.

PostInvalidate()

Cause an invalidate to happen on a subsequent cycle through the event loop.

PostInvalidate(Int32, Int32, Int32, Int32)

Cause an invalidate of the specified area to happen on a subsequent cycle through the event loop.

[Android.Runtime.Register("postInvalidate", "(IIII)V", "GetPostInvalidate_IIIIHandler")]
public virtual void PostInvalidate (int left, int top, int right, int bottom);
[<Android.Runtime.Register("postInvalidate", "(IIII)V", "GetPostInvalidate_IIIIHandler")>]
abstract member PostInvalidate : int * int * int * int -> unit
override this.PostInvalidate : int * int * int * int -> unit

Parameters

left
Int32

The left coordinate of the rectangle to invalidate.

top
Int32

The top coordinate of the rectangle to invalidate.

right
Int32

The right coordinate of the rectangle to invalidate.

bottom
Int32

The bottom coordinate of the rectangle to invalidate.

Attributes

Remarks

Cause an invalidate of the specified area to happen on a subsequent cycle through the event loop. Use this to invalidate the View from a non-UI thread.

This method can be invoked from outside of the UI thread only when this View is attached to a window.

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

See also

  • <xref:Android.Views.View.Invalidate(System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32)>
  • Invalidate(Rect)
  • <xref:Android.Views.View.PostInvalidateDelayed(System.Int64%2c+System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32)>

Applies to

PostInvalidate()

Cause an invalidate to happen on a subsequent cycle through the event loop.

[Android.Runtime.Register("postInvalidate", "()V", "GetPostInvalidateHandler")]
public virtual void PostInvalidate ();
[<Android.Runtime.Register("postInvalidate", "()V", "GetPostInvalidateHandler")>]
abstract member PostInvalidate : unit -> unit
override this.PostInvalidate : unit -> unit
Attributes

Remarks

Cause an invalidate to happen on a subsequent cycle through the event loop. Use this to invalidate the View from a non-UI thread.

This method can be invoked from outside of the UI thread only when this View is attached to a window.

Java documentation for android.view.View.postInvalidate().

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.

See also

Applies to