Added in API level 1

ActivityResult


class ActivityResult
kotlin.Any
   ↳ android.app.Instrumentation.ActivityResult

Description of a Activity execution result to return to the original activity.

Summary

Public constructors
ActivityResult(resultCode: Int, resultData: Intent!)

Create a new activity result.

Public methods
Int

Retrieve the result code contained in this result.

Intent!

Retrieve the data contained in this result.

Public constructors

ActivityResult

Added in API level 1
ActivityResult(
    resultCode: Int,
    resultData: Intent!)

Create a new activity result. See android.app.Activity#setResult for more information.

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
fun getResultCode(): Int

Retrieve the result code contained in this result.

getResultData

Added in API level 1
fun getResultData(): Intent!

Retrieve the data contained in this result.