belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
ActivityCompat.PermissionCompatDelegate
  public
  static
  
  
  interface
  ActivityCompat.PermissionCompatDelegate
  
  
  
| android.support.v4.app.ActivityCompat.PermissionCompatDelegate | 
Customizable delegate that allows delegating permission compatibility methods to a custom implementation.
     To delegate permission compatibility methods to a custom class, implement this interface,
     and call ActivityCompat.setPermissionCompatDelegate(delegate);. All future calls
     to the permission 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 | 
      onActivityResult(Activity activity, int requestCode, int resultCode, Intent data)
      Determines whether the delegate should handle the permission request as part of
  | 
| 
        abstract
        
        
        
        
        boolean | 
      requestPermissions(Activity activity, String[] permissions, int requestCode)
      Determines whether the delegate should handle
  | 
Public methods
onActivityResult
boolean onActivityResult (Activity activity, int requestCode, int resultCode, Intent data)
Determines whether the delegate should handle the permission request as part of
 FragmentActivity#onActivityResult(int, int, Intent). If this method returns true,
 it means that activity result is successfully handled by the delegate, and no further
 action is needed on this activity result.
| Parameters | |
|---|---|
| activity | Activity: The target Activity. | 
| requestCode | int: The integer request code originally supplied tostartActivityForResult(), allowing you to identify who this
                    result came from. | 
| resultCode | int: The integer result code returned by the child activity
                    through itssetResult()}. | 
| data | Intent: An Intent, which can return result data to the caller
                    (various data can be attached to Intent "extras"). | 
| Returns | |
|---|---|
| boolean | Whether the delegate has handled the activity result. | 
requestPermissions
boolean requestPermissions (Activity activity, String[] permissions, int requestCode)
Determines whether the delegate should handle
 requestPermissions(Activity, 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 | |
|---|---|
| activity | Activity: The target activity. | 
| permissions | String: The requested permissions. Must me non-null and not empty. | 
| requestCode | int: Application specific request code to match with a result reported toonRequestPermissionsResult(int, String[], int[]).
    Should be >= 0. | 
| Returns | |
|---|---|
| boolean | Whether the delegate has handled the permission request. | 
- Annotations
- Interfaces- ActionBarDrawerToggle.Delegate
- ActionBarDrawerToggle.DelegateProvider
- ActivityCompat.OnRequestPermissionsResultCallback
- ActivityCompat.PermissionCompatDelegate
- FragmentManager.BackStackEntry
- FragmentManager.OnBackStackChangedListener
- LoaderManager.LoaderCallbacks
- NotificationCompat.Action.Extender
- NotificationCompat.Extender
- SharedElementCallback.OnSharedElementsReadyListener
- TaskStackBuilder.SupportParentable
 
- Classes- ActionBarDrawerToggle
- ActivityCompat
- ActivityManagerCompat
- ActivityOptionsCompat
- AlarmManagerCompat
- AppLaunchChecker
- AppOpsManagerCompat
- BundleCompat
- DialogFragment
- Fragment
- Fragment.SavedState
- FragmentActivity
- FragmentContainer
- FragmentController
- FragmentHostCallback
- FragmentManager
- FragmentManager.FragmentLifecycleCallbacks
- FragmentManagerNonConfig
- FragmentPagerAdapter
- FragmentStatePagerAdapter
- FragmentTabHost
- FragmentTransaction
- FrameMetricsAggregator
- JobIntentService
- ListFragment
- LoaderManager
- NavUtils
- NotificationCompat
- NotificationCompat.Action
- NotificationCompat.Action.Builder
- NotificationCompat.Action.WearableExtender
- NotificationCompat.BigPictureStyle
- NotificationCompat.BigTextStyle
- NotificationCompat.Builder
- NotificationCompat.CarExtender
- NotificationCompat.CarExtender.UnreadConversation
- NotificationCompat.CarExtender.UnreadConversation.Builder
- NotificationCompat.DecoratedCustomViewStyle
- NotificationCompat.InboxStyle
- NotificationCompat.MessagingStyle
- NotificationCompat.MessagingStyle.Message
- NotificationCompat.Style
- NotificationCompat.WearableExtender
- NotificationCompatExtras
- NotificationCompatSideChannelService
- NotificationManagerCompat
- RemoteInput
- RemoteInput.Builder
- ServiceCompat
- ShareCompat
- ShareCompat.IntentBuilder
- ShareCompat.IntentReader
- SharedElementCallback
- TaskStackBuilder
 
- Exceptions
