FileDocCategorySizeDatePackage
ResultStorageDescriptor.javaAPI DocAndroid 5.1 API2518Thu Mar 12 22:22:10 GMT 2015android.bluetooth.le

ResultStorageDescriptor

public final class ResultStorageDescriptor extends Object implements android.os.Parcelable
Describes the way to store scan result.
hide

Fields Summary
private int
mType
private int
mOffset
private int
mLength
public static final Parcelable.Creator
CREATOR
Constructors Summary
public ResultStorageDescriptor(int type, int offset, int length)
Constructor of {@link ResultStorageDescriptor}

param
type Type of the data.
param
offset Offset from start of the advertise packet payload.
param
length Byte length of the data

        mType = type;
        mOffset = offset;
        mLength = length;
    
private ResultStorageDescriptor(android.os.Parcel in)

        ReadFromParcel(in);
    
Methods Summary
private voidReadFromParcel(android.os.Parcel in)

        mType = in.readInt();
        mOffset = in.readInt();
        mLength = in.readInt();
    
public intdescribeContents()

        return 0;
    
public intgetLength()

        return mLength;
    
public intgetOffset()

        return mOffset;
    
public intgetType()

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

        dest.writeInt(mType);
        dest.writeInt(mOffset);
        dest.writeInt(mLength);