Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
added in version 1.0.0
belongs to Maven artifact androidx.legacy:legacy-support-v13:1.0.0-rc01
Deprecated since version 1.0.0

FragmentCompat.OnRequestPermissionsResultCallback

public static interface FragmentCompat.OnRequestPermissionsResultCallback

androidx.legacy.app.FragmentCompat.OnRequestPermissionsResultCallback


This interface was deprecated in API level 1.0.0.
Use Fragment instead of the framework Fragment.

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

Summary

Public methods

abstract void onRequestPermissionsResult(int requestCode, String[] permissions, int[] grantResults)

This method was deprecated in API level 1.0.0. Use Fragment instead of the framework Fragment.

Public methods

onRequestPermissionsResult

added in version 1.0.0
public abstract void onRequestPermissionsResult (int requestCode, 
                String[] permissions, 
                int[] grantResults)

This method was deprecated in API level 1.0.0.
Use Fragment instead of the framework Fragment.

Callback for the result from requesting permissions. This method is invoked for every call on FragmentCompat.requestPermissions(android.app.Fragment, String[], int)

Parameters
requestCode int: The request code passed in FragmentCompat.requestPermissions(android.app.Fragment, String[], int)

permissions String: The requested permissions. Never null.

grantResults int: The grant results for the corresponding permissions which is either PackageManager.PERMISSION_GRANTED or PackageManager.PERMISSION_DENIED. Never null.