Google 致力于为黑人社区推动种族平等。查看具体举措

SynchronousResult

class SynchronousResult<T : Any!>
kotlin.Any
   ↳ androidx.activity.result.contract.ActivityResultContract.SynchronousResult

The wrapper for a result provided in getSynchronousResult

Summary

Public constructors
<init>(value: T)

Create a new result wrapper

Public methods
T

Public constructors

<init>

SynchronousResult(value: T)

Create a new result wrapper

Parameters
value T: the result value

Public methods

getValue

fun getValue(): T
Return
T the result value