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!