Aracılığıyla paylaş


Handler.CreateAsync Method

Definition

Overloads

CreateAsync(Looper)

Create a new Handler whose posted messages and runnables are not subject to synchronization barriers such as display vsync.

CreateAsync(Looper, Handler+ICallback)

Create a new Handler whose posted messages and runnables are not subject to synchronization barriers such as display vsync.

CreateAsync(Looper)

Create a new Handler whose posted messages and runnables are not subject to synchronization barriers such as display vsync.

[Android.Runtime.Register("createAsync", "(Landroid/os/Looper;)Landroid/os/Handler;", "", ApiSince=28)]
public static Android.OS.Handler CreateAsync (Android.OS.Looper looper);
[<Android.Runtime.Register("createAsync", "(Landroid/os/Looper;)Landroid/os/Handler;", "", ApiSince=28)>]
static member CreateAsync : Android.OS.Looper -> Android.OS.Handler

Parameters

looper
Looper

the Looper that the new Handler should be bound to

Returns

a new async Handler instance

Attributes

Remarks

Create a new Handler whose posted messages and runnables are not subject to synchronization barriers such as display vsync.

Messages sent to an async handler are guaranteed to be ordered with respect to one another, but not necessarily with respect to messages from other Handlers.

Java documentation for android.os.Handler.createAsync(android.os.Looper).

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

CreateAsync(Looper, Handler+ICallback)

Create a new Handler whose posted messages and runnables are not subject to synchronization barriers such as display vsync.

[Android.Runtime.Register("createAsync", "(Landroid/os/Looper;Landroid/os/Handler$Callback;)Landroid/os/Handler;", "", ApiSince=28)]
public static Android.OS.Handler CreateAsync (Android.OS.Looper looper, Android.OS.Handler.ICallback callback);
[<Android.Runtime.Register("createAsync", "(Landroid/os/Looper;Landroid/os/Handler$Callback;)Landroid/os/Handler;", "", ApiSince=28)>]
static member CreateAsync : Android.OS.Looper * Android.OS.Handler.ICallback -> Android.OS.Handler

Parameters

looper
Looper

the Looper that the new Handler should be bound to

Returns

a new async Handler instance

Attributes

Remarks

Java documentation for android.os.Handler.createAsync(android.os.Looper).

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