Share via


VpnService.IsAlwaysOn Property

Definition

Returns whether the service is running in always-on VPN mode.

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

Property Value

Attributes

Remarks

Returns whether the service is running in always-on VPN mode. In this mode the system ensures that the service is always running by restarting it when necessary, e.g. after reboot.

Java documentation for android.net.VpnService.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.

Applies to