public interface

ActivityCompat.OnRequestPermissionsResultCallback

 androidx.core.app.ActivityCompat.OnRequestPermissionsResultCallback

Subclasses:

CarAppActivity, LauncherActivity, BaseCarAppActivity, AppSearchDebugActivity, SlicePermissionActivity, ComplicationHelperActivity, ComplicationHelperActivity, FragmentActivity, FragmentScenario.EmptyFragmentActivity, DeviceCredentialHandlerActivity, AppCompatActivity

Overview

This interface is the contract for receiving the results for permission requests.

Summary

Methods
public voidonRequestPermissionsResult(int requestCode, java.lang.String permissions[], int[] grantResults[])

Callback for the result from requesting permissions.

Methods

public void onRequestPermissionsResult(int requestCode, java.lang.String permissions[], int[] grantResults[])

Callback for the result from requesting permissions. This method is invoked for every call on ActivityCompat.OnRequestPermissionsResultCallback.

Note: It is possible that the permissions request interaction with the user is interrupted. In this case you will receive empty permissions and results arrays which should be treated as a cancellation.

Parameters:

requestCode: The request code passed in ActivityCompat.OnRequestPermissionsResultCallback
permissions: The requested permissions. Never null.
grantResults: The grant results for the corresponding permissions which is either android.content.pm.PackageManager or android.content.pm.PackageManager. Never null.

See also: ActivityCompat.OnRequestPermissionsResultCallback