VpnProfileState.IsLockdownEnabled Property

Definition

Returns the lockdown mode status of the PlatformVpnProfile.

public bool IsLockdownEnabled { [Android.Runtime.Register("isLockdownEnabled", "()Z", "", ApiSince=33)] get; }
[<get: Android.Runtime.Register("isLockdownEnabled", "()Z", "", ApiSince=33)>]
member this.IsLockdownEnabled : bool

Property Value

Attributes

Remarks

Returns the lockdown mode status of the PlatformVpnProfile.

In lockdown mode, the system will ensure that apps are not allowed to bypass the VPN, including during startup or failure of the VPN.

Lockdown mode can be set by an appropriately privileged user via the Settings VPN menus, or by the Device Policy Manager app programmatically.

See DevicePolicyManager#setAlwaysOnVpnPackage(ComponentName, String, boolean, Set)

Java documentation for android.net.VpnProfileState.isLockdownEnabled().

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