Documentation
¶
Overview ¶
Package advancedprotection provides Go bindings for android.security.advancedprotection.
Index ¶
- func Init(env *jni.Env) error
- type AdvancedProtectionManager
- func (m *AdvancedProtectionManager) Close()
- func (m *AdvancedProtectionManager) IsAdvancedProtectionEnabled() (bool, error)
- func (m *AdvancedProtectionManager) RegisterAdvancedProtectionCallback(arg0 *jni.Object, arg1 *jni.Object) error
- func (m *AdvancedProtectionManager) UnregisterAdvancedProtectionCallback(arg0 *jni.Object) error
- type AdvancedProtectionManagerCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AdvancedProtectionManager ¶
AdvancedProtectionManager wraps android.security.advancedprotection.AdvancedProtectionManager.
func NewAdvancedProtectionManager ¶
func NewAdvancedProtectionManager(ctx *app.Context) (*AdvancedProtectionManager, error)
NewAdvancedProtectionManager obtains android.security.advancedprotection.AdvancedProtectionManager from the Android system service manager.
func (*AdvancedProtectionManager) Close ¶
func (m *AdvancedProtectionManager) Close()
Close releases the global reference to the underlying Java object. After Close, the AdvancedProtectionManager must not be used.
func (*AdvancedProtectionManager) IsAdvancedProtectionEnabled ¶
func (m *AdvancedProtectionManager) IsAdvancedProtectionEnabled() (bool, error)
IsAdvancedProtectionEnabled calls android.security.advancedprotection.AdvancedProtectionManager.isAdvancedProtectionEnabled.
func (*AdvancedProtectionManager) RegisterAdvancedProtectionCallback ¶
func (m *AdvancedProtectionManager) RegisterAdvancedProtectionCallback(arg0 *jni.Object, arg1 *jni.Object) error
RegisterAdvancedProtectionCallback calls android.security.advancedprotection.AdvancedProtectionManager.registerAdvancedProtectionCallback.
func (*AdvancedProtectionManager) UnregisterAdvancedProtectionCallback ¶
func (m *AdvancedProtectionManager) UnregisterAdvancedProtectionCallback(arg0 *jni.Object) error
UnregisterAdvancedProtectionCallback calls android.security.advancedprotection.AdvancedProtectionManager.unregisterAdvancedProtectionCallback.
type AdvancedProtectionManagerCallback ¶
AdvancedProtectionManagerCallback wraps android.security.advancedprotection.AdvancedProtectionManager$Callback.
func (*AdvancedProtectionManagerCallback) OnAdvancedProtectionChanged ¶
func (m *AdvancedProtectionManagerCallback) OnAdvancedProtectionChanged(arg0 bool) error
OnAdvancedProtectionChanged calls android.security.advancedprotection.AdvancedProtectionManager$Callback.onAdvancedProtectionChanged.