Package 

Interface FragmentCompat.PermissionCompatDelegate


  • @Deprecated() 
    public interface FragmentCompat.PermissionCompatDelegate
    
                        

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

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

    Fragment.
    • Method Summary

      Modifier and Type Method Description
      abstract boolean requestPermissions(Fragment fragment, Array<String> permissions, int requestCode) Determines whether the delegate should handle requestPermissions, and requestpermissions if applicable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • requestPermissions

        @Deprecated() abstract boolean requestPermissions(Fragment fragment, Array<String> permissions, int requestCode)

        Determines whether the delegate should handle requestPermissions, and requestpermissions if applicable. If this method returns true, it means that permissionrequest is successfully handled by the delegate, and platform should not perform anyfurther requests for permission.

        Parameters:
        fragment - The target fragment.
        permissions - The requested permissions.
        requestCode - Application specific request code to match with a resultreported to onRequestPermissionsResult.