public static final class Instrumentation.ActivityResult extends Object
Constructor and Description |
---|
ActivityResult(int resultCode,
Intent resultData)
Create a new activity result.
|
Modifier and Type | Method and Description |
---|---|
int |
getResultCode()
Retrieve the result code contained in this result.
|
Intent |
getResultData()
Retrieve the data contained in this result.
|
public ActivityResult(int resultCode, Intent resultData)
Activity.setResult(int)
for
more information.resultCode
- The result code to propagate back to the
originating activity, often RESULT_CANCELED or RESULT_OKresultData
- The data to propagate back to the originating
activity.public int getResultCode()
public Intent getResultData()