Added in API level 36
Callback
interface Callback
| android.security.advancedprotection.AdvancedProtectionManager.Callback |
A callback class for monitoring changes to Advanced Protection state
To register a callback, implement this interface, and register it with AdvancedProtectionManager.registerAdvancedProtectionCallback(Executor, Callback). Methods are called when the state changes, as well as once on initial registration.
Summary
| Public methods | |
|---|---|
| abstract Unit |
onAdvancedProtectionChanged(enabled: Boolean)Called when advanced protection state changes |
Public methods
onAdvancedProtectionChanged
Added in API level 36
abstract fun onAdvancedProtectionChanged(enabled: Boolean): Unit
Called when advanced protection state changes
| Parameters | |
|---|---|
enabled |
Boolean: the new state |