FileDocCategorySizeDatePackage
MessagePdu.javaAPI DocAndroid 5.1 API2973Thu Mar 12 22:22:10 GMT 2015android.service.carrier

MessagePdu

public final class MessagePdu extends Object implements android.os.Parcelable
A parcelable list of PDUs representing contents of a possibly multi-part SMS.

Fields Summary
private static final int
NULL_LENGTH
private final List
mPduList
public static final Parcelable.Creator
CREATOR
Constructs a {@link MessagePdu} from a {@link Parcel}.
Constructors Summary
public MessagePdu(List pduList)
Constructs a MessagePdu with the list of message PDUs.

param
pduList the list of message PDUs


                         
        
        if (pduList == null || pduList.contains(null)) {
            throw new IllegalArgumentException("pduList must not be null or contain nulls");
        }
        mPduList = pduList;
    
Methods Summary
public intdescribeContents()

        return 0;
    
public java.util.ListgetPdus()
Returns the contents of a possibly multi-part SMS.

return
the list of PDUs

        return mPduList;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        if (mPduList == null) {
            dest.writeInt(NULL_LENGTH);
        } else {
            dest.writeInt(mPduList.size());
            for (byte[] messagePdu : mPduList) {
                dest.writeByteArray(messagePdu);
            }
        }