ActivityResult
class ActivityResult : Parcelable
A container for an activity result as obtained from Activity.onActivityResult
| See also | |
|---|---|
onActivityResult |
Summary
Public companion functions |
|
|---|---|
String |
resultCodeToString(resultCode: Int)A readable representation of standard activity result codes for the given |
Public companion properties |
|
|---|---|
Parcelable.Creator<ActivityResult> |
Public constructors |
|---|
ActivityResult(resultCode: Int, data: Intent?) |
Public properties |
|
|---|---|
Intent? |
The intent that carries the result data |
Int |
Status to indicate the success of the operation |
Extension functions |
|
|---|---|
operator Int |
Destructuring declaration for |
operator Intent? |
Destructuring declaration for |
Public companion functions
resultCodeToString
fun resultCodeToString(resultCode: Int): String
A readable representation of standard activity result codes for the given resultCode
| Returns | |
|---|---|
String |
RESULT_OK, RESULT_CANCELED, or the number otherwise |
Public companion properties
Public constructors
Public functions
Public properties
Extension functions
component1
operator fun ActivityResult.component1(): Int
Destructuring declaration for ActivityResult to provide the requestCode
| Returns | |
|---|---|
Int |
the resultCode of the |
component2
operator fun ActivityResult.component2(): Intent?
Destructuring declaration for ActivityResult to provide the intent
| Returns | |
|---|---|
Intent? |
the intent of the |