Language

VpnService.Builder.SetSession(String) Method

Definition

Set the name of this session.

[Android.Runtime.Register("setSession", "(Ljava/lang/String;)Landroid/net/VpnService$Builder;", "GetSetSession_Ljava_lang_String_Handler")]
public virtual Android.Net.VpnService.Builder SetSession(string session);
[<Android.Runtime.Register("setSession", "(Ljava/lang/String;)Landroid/net/VpnService$Builder;", "GetSetSession_Ljava_lang_String_Handler")>]
abstract member SetSession : string -> Android.Net.VpnService.Builder
override this.SetSession : string -> Android.Net.VpnService.Builder

Parameters

session
String

The VPN session label displayed in system dialogs and notifications.

Returns

This VPN builder with the requested setting updated.

Attributes

Remarks

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.

Java documentation for android.net.VpnService.Builder.setSession(java.lang.String).

Applies to