Condividi tramite


View.PostInvalidateDelayed Method

Definition

Overloads

PostInvalidateDelayed(Int64)

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

PostInvalidateDelayed(Int64, Int32, Int32, Int32, Int32)

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

PostInvalidateDelayed(Int64)

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

[Android.Runtime.Register("postInvalidateDelayed", "(J)V", "GetPostInvalidateDelayed_JHandler")]
public virtual void PostInvalidateDelayed (long delayMilliseconds);
[<Android.Runtime.Register("postInvalidateDelayed", "(J)V", "GetPostInvalidateDelayed_JHandler")>]
abstract member PostInvalidateDelayed : int64 -> unit
override this.PostInvalidateDelayed : int64 -> unit

Parameters

delayMilliseconds
Int64

the duration in milliseconds to delay the invalidation by

Attributes

Remarks

Cause an invalidate to happen on a subsequent cycle through the event loop. Waits for the specified amount of time.

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.postInvalidateDelayed(long).

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

PostInvalidateDelayed(Int64, Int32, Int32, Int32, Int32)

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

[Android.Runtime.Register("postInvalidateDelayed", "(JIIII)V", "GetPostInvalidateDelayed_JIIIIHandler")]
public virtual void PostInvalidateDelayed (long delayMilliseconds, int left, int top, int right, int bottom);
[<Android.Runtime.Register("postInvalidateDelayed", "(JIIII)V", "GetPostInvalidateDelayed_JIIIIHandler")>]
abstract member PostInvalidateDelayed : int64 * int * int * int * int -> unit
override this.PostInvalidateDelayed : int64 * int * int * int * int -> unit

Parameters

delayMilliseconds
Int64

the duration in milliseconds to delay the invalidation by

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. Waits for the specified amount of time.

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.postInvalidateDelayed(long, 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.PostInvalidate(System.Int32%2c+System.Int32%2c+System.Int32%2c+System.Int32)>

Applies to