Messenger

Class of android.os · Messenger.java · Android's reference

public final class Messenger implements Parcelable

A Handler that another component sends messages to. Its binder carries the Handler, so a Messenger made from that binder (as a client makes one from a service's onBind) sends to the same Handler.

Fields

public static final Parcelable.Creator<Messenger> CREATOR source

Constructors

public Messenger(Handler target) source
public Messenger(IBinder target) source

Methods

public void send(Message message) throws RemoteException source

To the Handler directly, or as a one-way transaction to a binder that another Messenger did not make.

public IBinder getBinder() source
public boolean equals(Object o) source
public int hashCode() source
public int describeContents() source
public void writeToParcel(Parcel out, int flags) source
public static void writeMessengerOrNullToParcel(Messenger messenger, Parcel out) source
public static Messenger readMessengerOrNullFromParcel(Parcel in) source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.