FileDocCategorySizeDatePackage
BeamShareData.javaAPI DocAndroid 5.1 API2091Thu Mar 12 22:22:10 GMT 2015android.nfc

BeamShareData

public final class BeamShareData extends Object implements android.os.Parcelable
Class to IPC data to be shared over Android Beam. Allows bundling NdefMessage, Uris and flags in a single IPC call. This is important as we want to reduce the amount of IPC calls at "touch time".
hide

Fields Summary
public final NdefMessage
ndefMessage
public final android.net.Uri[]
uris
public final android.os.UserHandle
userHandle
public final int
flags
public static final Parcelable.Creator
CREATOR
Constructors Summary
public BeamShareData(NdefMessage msg, android.net.Uri[] uris, android.os.UserHandle userHandle, int flags)

        this.ndefMessage = msg;
        this.uris = uris;
        this.userHandle = userHandle;
        this.flags = flags;
    
Methods Summary
public intdescribeContents()

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

        int urisLength = (uris != null) ? uris.length : 0;
        dest.writeParcelable(ndefMessage, 0);
        dest.writeInt(urisLength);
        if (urisLength > 0) {
            dest.writeTypedArray(uris, 0);
        }
        dest.writeParcelable(userHandle, 0);
        dest.writeInt(this.flags);