FileDocCategorySizeDatePackage
ResultInfo.javaAPI DocAndroid 5.1 API2360Thu Mar 12 22:22:10 GMT 2015android.app

ResultInfo

public class ResultInfo extends Object implements android.os.Parcelable
{@hide}

Fields Summary
public final String
mResultWho
public final int
mRequestCode
public final int
mResultCode
public final android.content.Intent
mData
public static final Parcelable.Creator
CREATOR
Constructors Summary
public ResultInfo(String resultWho, int requestCode, int resultCode, android.content.Intent data)

        mResultWho = resultWho;
        mRequestCode = requestCode;
        mResultCode = resultCode;
        mData = data;
    
public ResultInfo(android.os.Parcel in)


       
        mResultWho = in.readString();
        mRequestCode = in.readInt();
        mResultCode = in.readInt();
        if (in.readInt() != 0) {
            mData = Intent.CREATOR.createFromParcel(in);
        } else {
            mData = null;
        }
    
Methods Summary
public intdescribeContents()

        return 0;
    
public java.lang.StringtoString()

        return "ResultInfo{who=" + mResultWho + ", request=" + mRequestCode
            + ", result=" + mResultCode + ", data=" + mData + "}";
    
public voidwriteToParcel(android.os.Parcel out, int flags)

        out.writeString(mResultWho);
        out.writeInt(mRequestCode);
        out.writeInt(mResultCode);
        if (mData != null) {
            out.writeInt(1);
            mData.writeToParcel(out, 0);
        } else {
            out.writeInt(0);
        }