ActivityResult
class ActivityResult : Parcelable
A container for an activity result as obtained form Activity#onActivityResult
Summary
Public constructors |
Create a new instance
|
Public constructors
<init>
ActivityResult(
resultCode: Int,
@Nullable data: Intent?)
Create a new instance
Parameters |
resultCode |
Int: status to indicate the success of the operation |
data |
Intent?: an intent that carries the result data |
Public methods
describeContents
fun describeContents(): Int
getData
@Nullable fun getData(): Intent?
getResultCode
fun getResultCode(): Int
Return |
Int |
the resultCode |
resultCodeToString
@NonNull static fun resultCodeToString(resultCode: Int): String
A readable representation of standard activity result codes
Parameters |
resultCode |
Int: the result code |
Return |
String |
RESULT_OK, RESULT_CANCELED, or the number otherwise |
toString
fun toString(): String
writeToParcel
fun writeToParcel(
@NonNull dest: Parcel,
flags: Int
): Unit
Properties