UnusedAppRestrictionsBackportCallback

public class UnusedAppRestrictionsBackportCallback
extends Object

java.lang.Object
   ↳ androidx.core.content.UnusedAppRestrictionsBackportCallback


Wrapper class for {IUnusedAppRestrictionsBackportCallback}. Callback object to return the results from the UnusedAppRestrictionsBackportService APIs.

Summary

Public methods

void onResult(boolean success, boolean enabled)

This will be called with the results of the UnusedAppRestrictionsBackportService.isPermissionRevocationEnabled(UnusedAppRestrictionsBackportCallback) API.

Inherited methods

Public methods

onResult

public void onResult (boolean success, 
                boolean enabled)

This will be called with the results of the UnusedAppRestrictionsBackportService.isPermissionRevocationEnabled(UnusedAppRestrictionsBackportCallback) API.

Parameters
success boolean: false if there was an error while checking if the app is enabled, otherwise true.

enabled boolean: true if permission revocation is enabled for the app, otherwise false.

Throws
RemoteException