Język

VpnProfileState(Int32, String, Boolean, Boolean) Constructor

Definition

Initializes a new instance of VpnProfileState.

[Android.Runtime.Register(".ctor", "(ILjava/lang/String;ZZ)V", "", ApiSince=33)]
public VpnProfileState(int state, string? sessionKey, bool alwaysOn, bool lockdown);
[<Android.Runtime.Register(".ctor", "(ILjava/lang/String;ZZ)V", "", ApiSince=33)>]
new Android.Net.VpnProfileState : int * string * bool * bool -> Android.Net.VpnProfileState

Parameters

state
Int32

Value is one of the following: STATE_CONNECTED; STATE_CONNECTING; STATE_DISCONNECTED; STATE_FAILED

sessionKey
String

The VPN session identifier to store, or null when no session is running.

alwaysOn
Boolean

Whether the profile is configured to run as an always-on VPN.

lockdown
Boolean

Whether bypassing the VPN is blocked by lockdown mode.

Attributes

Remarks

Java documentation for android.net.VpnProfileState.VpnProfileState(int, java.lang.String, boolean, boolean).

Applies to