added in version 27.1.0
belongs to Maven artifact com.android.support:support-v13:28.0.0-alpha1
Deprecated since version 27.1.0

FragmentCompat.PermissionCompatDelegate

public static interface FragmentCompat.PermissionCompatDelegate

android.support.v13.app.FragmentCompat.PermissionCompatDelegate


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

Customizable delegate that allows delegating permission related compatibility methods to a custom implementation.

To delegate fragment compatibility methods to a custom class, implement this interface, and call FragmentCompat.setPermissionCompatDelegate(delegate);. All future calls to the compatibility methods in this class will first check whether the delegate can handle the method call, and invoke the corresponding method if it can.

Summary

Public methods

abstract boolean requestPermissions(Fragment fragment, String[] permissions, int requestCode)

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

Public methods

requestPermissions

added in version 27.1.0
boolean requestPermissions (Fragment fragment, 
                String[] permissions, 
                int requestCode)

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

Determines whether the delegate should handle requestPermissions(Fragment, String[], int), and request permissions if applicable. If this method returns true, it means that permission request is successfully handled by the delegate, and platform should not perform any further requests for permission.

Parameters
fragment Fragment: The target fragment.

permissions String: The requested permissions.

requestCode int: Application specific request code to match with a result reported to onRequestPermissionsResult(int, String[], int[]).

Returns
boolean Whether the delegate has handled the permission request.