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.
public static final Parcelable.Creator<Messenger> CREATOR sourcepublic Messenger(Handler target) sourcepublic Messenger(IBinder target) sourcepublic void send(Message message) throws RemoteException sourceTo the Handler directly, or as a one-way transaction to a binder that another Messenger did not make.
public IBinder getBinder() sourcepublic boolean equals(Object o) sourcepublic int hashCode() sourcepublic int describeContents() sourcepublic void writeToParcel(Parcel out, int flags) sourcepublic static void writeMessengerOrNullToParcel(Messenger messenger, Parcel out) sourcepublic static Messenger readMessengerOrNullFromParcel(Parcel in) sourceMade 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.