Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

# AdvancedProtectionManager.Callback

*** ** * ** ***

` public static interface AdvancedProtectionManager.Callback `   
` `

|---|
| android.security.advancedprotection.AdvancedProtectionManager.Callback |

<br />

*** ** * ** ***

A callback class for monitoring changes to Advanced Protection state

To register a callback, implement this interface, and register it with `https://developer.android.com/reference/android/security/advancedprotection/AdvancedProtectionManager#registerAdvancedProtectionCallback(java.util.concurrent.Executor,%20android.security.advancedprotection.AdvancedProtectionManager.Callback)`. Methods are called when the state changes, as well as once on initial registration.

## Summary

| ### Public methods ||
|---|---|
| ` abstract void` | ` https://developer.android.com/reference/android/security/advancedprotection/AdvancedProtectionManager.Callback#onAdvancedProtectionChanged(boolean)(boolean enabled) ` Called when advanced protection state changes |

## Public methods

### onAdvancedProtectionChanged

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public abstract void onAdvancedProtectionChanged (boolean enabled)
```

Called when advanced protection state changes

<br />

| Parameters ||
|---|---|
| `enabled` | `boolean`: the new state <br /> |