ResultInfopublic class ResultInfo extends Object implements android.os.Parcelable
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 int | describeContents()
return 0;
| public java.lang.String | toString()
return "ResultInfo{who=" + mResultWho + ", request=" + mRequestCode
+ ", result=" + mResultCode + ", data=" + mData + "}";
| public void | writeToParcel(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);
}
|
|