# UnusedAppRestrictionsBackportCallback

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/content/UnusedAppRestrictionsBackportCallback.java+class:androidx.core.content.UnusedAppRestrictionsBackportCallback) Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/core#1.7.0)

*** ** * ** ***


```
public class UnusedAppRestrictionsBackportCallback
```

<br />

*** ** * ** ***

Wrapper class for {IUnusedAppRestrictionsBackportCallback}. Callback object to return the results from the `https://developer.android.com/reference/androidx/core/content/UnusedAppRestrictionsBackportService` APIs.

## Summary

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/core/content/UnusedAppRestrictionsBackportCallback#onResult(boolean,boolean)(boolean success, boolean enabled)` This will be called with the results of the `https://developer.android.com/reference/androidx/core/content/UnusedAppRestrictionsBackportService#isPermissionRevocationEnabled(androidx.core.content.UnusedAppRestrictionsBackportCallback)` API. |

## Public methods

### onResult

Added in [1.7.0](https://developer.android.com/jetpack/androidx/releases/core#1.7.0)

```
public void onResult(boolean success, boolean enabled)
```

This will be called with the results of the `https://developer.android.com/reference/androidx/core/content/UnusedAppRestrictionsBackportService#isPermissionRevocationEnabled(androidx.core.content.UnusedAppRestrictionsBackportCallback)` API.

| Parameters |
|---|---|
| `boolean success` | false if there was an error while checking if the app is enabled, otherwise true. |
| `boolean enabled` | true if permission revocation is enabled for the app, otherwise false. |

| Throws |
|---|---|
| `https://developer.android.com/reference/android/os/RemoteException.html` |   |