ActivityResult
public
final
class
ActivityResult
extends Object
implements
Parcelable
| java.lang.Object
|
| ↳ |
androidx.activity.result.ActivityResult
|
A container for an activity result as obtained form Activity.onActivityResult(int, int, Intent)
Summary
Inherited constants |
From interface
android.os.Parcelable
int |
CONTENTS_FILE_DESCRIPTOR
|
int |
PARCELABLE_WRITE_RETURN_VALUE
|
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
|
|
Fields
Public constructors
ActivityResult
public ActivityResult (int resultCode,
Intent data)
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
public int describeContents ()
getData
public Intent getData ()
getResultCode
public int getResultCode ()
| Returns |
int |
the resultCode
|
resultCodeToString
public static String resultCodeToString (int resultCode)
A readable representation of standard activity result codes
| Parameters |
resultCode |
int: the result code |
| Returns |
String |
RESULT_OK, RESULT_CANCELED, or the number otherwise
|
toString
public String toString ()
writeToParcel
public void writeToParcel (Parcel dest,
int flags)
| Parameters |
dest |
Parcel |
flags |
int |