BeamShareDatapublic final class BeamShareData extends Object implements android.os.ParcelableClass 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". |
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 |
Methods Summary |
---|
public int | describeContents()
return 0;
| public void | writeToParcel(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);
|
|