DevicePolicyManager.IsAlwaysOnVpnLockdownEnabled(ComponentName) Method

Definition

Called by device or profile owner to query whether current always-on VPN is configured in lockdown mode.

[Android.Runtime.Register("isAlwaysOnVpnLockdownEnabled", "(Landroid/content/ComponentName;)Z", "GetIsAlwaysOnVpnLockdownEnabled_Landroid_content_ComponentName_Handler", ApiSince=29)]
public virtual bool IsAlwaysOnVpnLockdownEnabled (Android.Content.ComponentName admin);
[<Android.Runtime.Register("isAlwaysOnVpnLockdownEnabled", "(Landroid/content/ComponentName;)Z", "GetIsAlwaysOnVpnLockdownEnabled_Landroid_content_ComponentName_Handler", ApiSince=29)>]
abstract member IsAlwaysOnVpnLockdownEnabled : Android.Content.ComponentName -> bool
override this.IsAlwaysOnVpnLockdownEnabled : Android.Content.ComponentName -> bool

Parameters

admin
ComponentName

Which DeviceAdminReceiver this request is associated with.

Returns

Attributes

Remarks

Called by device or profile owner to query whether current always-on VPN is configured in lockdown mode. Returns false when no always-on configuration is set.

Java documentation for android.app.admin.DevicePolicyManager.isAlwaysOnVpnLockdownEnabled(android.content.ComponentName).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to