Handler Handler Constructors

Definition

Overloads

Handler()

Default constructor associates this handler with the Looper for the current thread.

Handler(Handler+ICallback) Handler(Handler+ICallback)

Constructor associates this handler with the Looper for the current thread and takes a callback interface in which you can handle messages.

Handler(Looper) Handler(Looper)

Use the provided Looper instead of the default one.

Handler(Action<Message>) Handler(Action<Message>)
Handler(Looper, Handler+ICallback) Handler(Looper, Handler+ICallback)

Use the provided Looper instead of the default one and take a callback interface in which to handle messages.

Handler(IntPtr, JniHandleOwnership) Handler(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

Handler()

Default constructor associates this handler with the Looper for the current thread.

[Android.Runtime.Register(".ctor", "()V", "")]
public Handler ();

Remarks

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.

Handler(Handler+ICallback) Handler(Handler+ICallback)

Constructor associates this handler with the Looper for the current thread and takes a callback interface in which you can handle messages.

[Android.Runtime.Register(".ctor", "(Landroid/os/Handler$Callback;)V", "", ApiSince=3)]
public Handler (Android.OS.Handler.ICallback callback);
new Android.OS.Handler : Android.OS.Handler.ICallback -> Android.OS.Handler

Parameters

Remarks

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.

Handler(Looper) Handler(Looper)

Use the provided Looper instead of the default one.

[Android.Runtime.Register(".ctor", "(Landroid/os/Looper;)V", "")]
public Handler (Android.OS.Looper looper);
new Android.OS.Handler : Android.OS.Looper -> Android.OS.Handler

Parameters

looper
Looper Looper

Remarks

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.

Handler(Action<Message>) Handler(Action<Message>)

public Handler (Action<Android.OS.Message> handler);
new Android.OS.Handler : Action<Android.OS.Message> -> Android.OS.Handler

Parameters

handler
Action<Message>

Remarks

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.

Handler(Looper, Handler+ICallback) Handler(Looper, Handler+ICallback)

Use the provided Looper instead of the default one and take a callback interface in which to handle messages.

[Android.Runtime.Register(".ctor", "(Landroid/os/Looper;Landroid/os/Handler$Callback;)V", "", ApiSince=3)]
public Handler (Android.OS.Looper looper, Android.OS.Handler.ICallback callback);
new Android.OS.Handler : Android.OS.Looper * Android.OS.Handler.ICallback -> Android.OS.Handler

Parameters

looper
Looper Looper

Remarks

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.

Handler(IntPtr, JniHandleOwnership) Handler(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected Handler (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.OS.Handler : nativeint * Android.Runtime.JniHandleOwnership -> Android.OS.Handler

Parameters

javaReference
IntPtr IntPtr

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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