# FragmentCompat.OnRequestPermissionsResultCallback

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  
belongs to Maven artifact com.android.support:support-v13:28.0.0-alpha1  
Deprecated since version 27.1.0  

# FragmentCompat.OnRequestPermissionsResultCallback

| This package is part of the Android[support library](https://developer.android.com/topic/libraries/support-library)which is no longer maintained. The support library has been superseded by[AndroidX](https://developer.android.com/jetpack/androidx)which is part of[Jetpack](https://developer.android.com/jetpack). We recommend using the AndroidX libraries in all new projects. You should also consider[migrating](https://developer.android.com/jetpack/androidx/migrate)existing projects to AndroidX. To find the AndroidX class that maps to this deprecated class, see the AndroidX support library[class mappings](https://developer.android.com/jetpack/androidx/migrate/class-mappings).

`
public
static


interface
FragmentCompat.OnRequestPermissionsResultCallback
`  
`


`

|---------------------------------------------------------------------------|
| android.support.v13.app.FragmentCompat.OnRequestPermissionsResultCallback |

<br />

*** ** * ** ***

<br />

**This interface was deprecated in API level 27.1.0.**   
Use[Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)instead of the framework[Fragment](https://developer.android.com/reference/android/app/Fragment.html).

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

## Summary

|                                                                                                                                                                                                                                                              ### Public methods                                                                                                                                                                                                                                                              ||
|------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` abstract void` | ` `[onRequestPermissionsResult](https://developer.android.com/reference/android/support/v13/app/FragmentCompat.OnRequestPermissionsResultCallback#onRequestPermissionsResult(int, java.lang.String[], int[]))`(int requestCode, String[] permissions, int[] grantResults) ` *This method was deprecated in API level 27.1.0. Use[Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)instead of the framework[Fragment](https://developer.android.com/reference/android/app/Fragment.html).* |

## Public methods

### onRequestPermissionsResult

added in[version 24.1.0](https://developer.android.com/topic/libraries/support-library/revisions)  

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

<br />

**This method was deprecated in API level 27.1.0.**   
Use[Fragment](https://developer.android.com/reference/android/support/v4/app/Fragment)instead of the framework[Fragment](https://developer.android.com/reference/android/app/Fragment.html).

Callback for the result from requesting permissions. This method is invoked for every call on[requestPermissions(android.app.Fragment, String[], int)](https://developer.android.com/reference/android/support/v13/app/FragmentCompat#requestPermissions(android.app.Fragment, java.lang.String[], int))

<br />

|                                                                                                                                                                          Parameters                                                                                                                                                                          ||
|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `requestCode`  | `int`: The request code passed in[requestPermissions(android.app.Fragment, String[], int)](https://developer.android.com/reference/android/support/v13/app/FragmentCompat#requestPermissions(android.app.Fragment, java.lang.String[], int)) <br />                                                                                          |
| `permissions`  | `String`: The requested permissions. Never null. <br />                                                                                                                                                                                                                                                                                      |
| `grantResults` | `int`: The grant results for the corresponding permissions which is either[PERMISSION_GRANTED](https://developer.android.com/reference/android/content/pm/PackageManager.html#PERMISSION_GRANTED)or[PERMISSION_DENIED](https://developer.android.com/reference/android/content/pm/PackageManager.html#PERMISSION_DENIED). Never null. <br /> |

**See also:**

- [requestPermissions(android.app.Fragment, String[], int)](https://developer.android.com/reference/android/support/v13/app/FragmentCompat#requestPermissions(android.app.Fragment, java.lang.String[], int))  
-

  ## Interfaces

  - [FragmentCompat.OnRequestPermissionsResultCallback](https://developer.android.com/reference/android/support/v13/app/FragmentCompat.OnRequestPermissionsResultCallback)
  - [FragmentCompat.PermissionCompatDelegate](https://developer.android.com/reference/android/support/v13/app/FragmentCompat.PermissionCompatDelegate)
-

  ## Classes

  - [ActivityCompat](https://developer.android.com/reference/android/support/v13/app/ActivityCompat)
  - [FragmentCompat](https://developer.android.com/reference/android/support/v13/app/FragmentCompat)
  - [FragmentPagerAdapter](https://developer.android.com/reference/android/support/v13/app/FragmentPagerAdapter)
  - [FragmentStatePagerAdapter](https://developer.android.com/reference/android/support/v13/app/FragmentStatePagerAdapter)
  - [FragmentTabHost](https://developer.android.com/reference/android/support/v13/app/FragmentTabHost)