Android APIs
public final class

MessagePdu

extends Object
implements Parcelable
java.lang.Object
   ↳ android.service.carrier.MessagePdu

Class Overview

A parcelable list of PDUs representing contents of a possibly multi-part SMS.

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<MessagePdu> CREATOR Constructs a MessagePdu from a Parcel.
Public Constructors
MessagePdu(List<byte[]> pduList)
Constructs a MessagePdu with the list of message PDUs.
Public Methods
int describeContents()
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
List<byte[]> getPdus()
Returns the contents of a possibly multi-part SMS.
void writeToParcel(Parcel dest, int flags)
Flatten this object in to a Parcel.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<MessagePdu> CREATOR

Added in API level 22

Constructs a MessagePdu from a Parcel.

Public Constructors

public MessagePdu (List<byte[]> pduList)

Added in API level 22

Constructs a MessagePdu with the list of message PDUs.

Parameters
pduList the list of message PDUs

Public Methods

public int describeContents ()

Added in API level 22

Describe the kinds of special objects contained in this Parcelable's marshalled representation.

Returns
  • a bitmask indicating the set of special object types marshalled by the Parcelable.

public List<byte[]> getPdus ()

Added in API level 22

Returns the contents of a possibly multi-part SMS.

Returns
  • the list of PDUs

public void writeToParcel (Parcel dest, int flags)

Added in API level 22

Flatten this object in to a Parcel.

Parameters
dest The Parcel in which the object should be written.
flags Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE.