Messenger Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
Messenger(Handler) |
Create a new Messenger pointing to the given Handler. |
Messenger(IBinder) |
Create a Messenger from a raw IBinder, which had previously been
retrieved with |
Messenger(Handler)
Create a new Messenger pointing to the given Handler.
[Android.Runtime.Register(".ctor", "(Landroid/os/Handler;)V", "")]
public Messenger (Android.OS.Handler? target);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Handler;)V", "")>]
new Android.OS.Messenger : Android.OS.Handler -> Android.OS.Messenger
Parameters
- target
- Handler
The Handler that will receive sent messages.
- Attributes
Remarks
Create a new Messenger pointing to the given Handler. Any Message objects sent through this Messenger will appear in the Handler as if Handler#sendMessage(Message) Handler.sendMessage(Message)
had been called directly.
Java documentation for android.os.Messenger.Messenger(android.os.Handler)
.
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
Messenger(IBinder)
Create a Messenger from a raw IBinder, which had previously been
retrieved with #getBinder
.
[Android.Runtime.Register(".ctor", "(Landroid/os/IBinder;)V", "")]
public Messenger (Android.OS.IBinder? target);
[<Android.Runtime.Register(".ctor", "(Landroid/os/IBinder;)V", "")>]
new Android.OS.Messenger : Android.OS.IBinder -> Android.OS.Messenger
Parameters
- target
- IBinder
The IBinder this Messenger should communicate with.
- Attributes
Remarks
Create a Messenger from a raw IBinder, which had previously been retrieved with #getBinder
.
Java documentation for android.os.Messenger.Messenger(android.os.IBinder)
.
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.