Most visited

Recently visited

Added in API level 1

Instrumentation.ActivityResult

public static final class Instrumentation.ActivityResult
extends Object

java.lang.Object
   ↳ android.app.Instrumentation.ActivityResult


要返回到原始活动的活动执行结果的描述。

Summary

Public constructors

Instrumentation.ActivityResult(int resultCode, Intent resultData)

创建一个新的活动结果。

Public methods

int getResultCode()

检索包含在此结果中的结果代码。

Intent getResultData()

检索包含在此结果中的数据。

Inherited methods

From class java.lang.Object

Public constructors

Instrumentation.ActivityResult

Added in API level 1
Instrumentation.ActivityResult (int resultCode, 
                Intent resultData)

创建一个新的活动结果。 有关更多信息,请参阅setResult(int)

Parameters
resultCode int: The result code to propagate back to the originating activity, often RESULT_CANCELED or RESULT_OK
resultData Intent: The data to propagate back to the originating activity.

Public methods

getResultCode

Added in API level 1
int getResultCode ()

检索包含在此结果中的结果代码。

Returns
int

getResultData

Added in API level 1
Intent getResultData ()

检索包含在此结果中的数据。

Returns
Intent

Hooray!