VpnProfileState.IsAlwaysOn Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the always-on status of the PlatformVpnProfile.
public bool IsAlwaysOn { [Android.Runtime.Register("isAlwaysOn", "()Z", "", ApiSince=33)] get; }
[<get: Android.Runtime.Register("isAlwaysOn", "()Z", "", ApiSince=33)>]
member this.IsAlwaysOn : bool
Property Value
- Attributes
Remarks
Returns the always-on status of the PlatformVpnProfile.
If the PlatformVpnProfile is set to be running in always-on mode, the system will ensure that the profile is always started, and restarting it when necessary (e.g. after reboot).
Always-on 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.isAlwaysOn()
.
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.