public final class

ActivityResultContracts.RequestMultiplePermissions

extends ActivityResultContract<java.lang.String, java.util.Map>

 java.lang.Object

androidx.activity.result.contract.ActivityResultContract<java.lang.String, java.util.Map>

↳androidx.activity.result.contract.ActivityResultContracts.RequestMultiplePermissions

Overview

An ActivityResultContract to

Summary

Fields
public static final java.lang.StringACTION_REQUEST_PERMISSIONS

An action for making a permission request via a regular API.

public static final java.lang.StringEXTRA_PERMISSION_GRANT_RESULTS

Key for the extra containing whether permissions were granted.

public static final java.lang.StringEXTRA_PERMISSIONS

Key for the extra containing all the requested permissions.

Constructors
publicRequestMultiplePermissions()

Methods
public abstract IntentcreateIntent(Context context, java.lang.Object input)

Create an intent that can be used for

public ActivityResultContract.SynchronousResult<java.lang.Object>getSynchronousResult(Context context, java.lang.Object input)

An optional method you can implement that can be used to potentially provide a result in lieu of starting an activity.

public abstract java.lang.ObjectparseResult(int resultCode, Intent intent)

Convert result obtained from to O

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public static final java.lang.String ACTION_REQUEST_PERMISSIONS

An action for making a permission request via a regular API. Caller must provide a String[] extra ActivityResultContracts.RequestMultiplePermissions.EXTRA_PERMISSIONS Result will be delivered via with String[] ActivityResultContracts.RequestMultiplePermissions.EXTRA_PERMISSIONS and int[] ActivityResultContracts.RequestMultiplePermissions.EXTRA_PERMISSION_GRANT_RESULTS, similar to

See also:

public static final java.lang.String EXTRA_PERMISSIONS

Key for the extra containing all the requested permissions.

See also: ActivityResultContracts.RequestMultiplePermissions.ACTION_REQUEST_PERMISSIONS

public static final java.lang.String EXTRA_PERMISSION_GRANT_RESULTS

Key for the extra containing whether permissions were granted.

See also: ActivityResultContracts.RequestMultiplePermissions.ACTION_REQUEST_PERMISSIONS

Constructors

public RequestMultiplePermissions()

Methods

public abstract Intent createIntent(Context context, java.lang.Object input)

Create an intent that can be used for

public ActivityResultContract.SynchronousResult<java.lang.Object> getSynchronousResult(Context context, java.lang.Object input)

An optional method you can implement that can be used to potentially provide a result in lieu of starting an activity.

Returns:

the result wrapped in a ActivityResultContract.SynchronousResult or null if the call should proceed to start an activity.

public abstract java.lang.Object parseResult(int resultCode, Intent intent)

Convert result obtained from to O