Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

RequestPermission

class RequestPermission : ActivityResultContract<String!, Boolean!>
kotlin.Any
   ↳ androidx.activity.result.contract.ActivityResultContract<kotlin.String, kotlin.Boolean>
   ↳ androidx.activity.result.contract.ActivityResultContracts.RequestPermission

An ActivityResultContract to request a permission

Summary

Public constructors

An ActivityResultContract to request a permission

Public methods
Intent
createIntent(@NonNull context: Context, @NonNull input: String)

ActivityResultContract.SynchronousResult<Boolean!>?
getSynchronousResult(@NonNull context: Context, @Nullable input: String?)

Boolean
parseResult(resultCode: Int, @Nullable intent: Intent?)

Public constructors

<init>

RequestPermission()

An ActivityResultContract to request a permission

Public methods

createIntent

@NonNull fun createIntent(
    @NonNull context: Context,
    @NonNull input: String
): Intent

getSynchronousResult

@Nullable fun getSynchronousResult(
    @NonNull context: Context,
    @Nullable input: String?
): ActivityResultContract.SynchronousResult<Boolean!>?

parseResult

@NonNull fun parseResult(
    resultCode: Int,
    @Nullable intent: Intent?
): Boolean