Language

VpnService.Builder.SetUnderlyingNetworks(Network[]) Method

Definition

Sets the networks underlying the VPN.

[Android.Runtime.Register("setUnderlyingNetworks", "([Landroid/net/Network;)Landroid/net/VpnService$Builder;", "GetSetUnderlyingNetworks_arrayLandroid_net_Network_Handler", ApiSince=22)]
public virtual Android.Net.VpnService.Builder SetUnderlyingNetworks(Android.Net.Network[]? networks);
[<Android.Runtime.Register("setUnderlyingNetworks", "([Landroid/net/Network;)Landroid/net/VpnService$Builder;", "GetSetUnderlyingNetworks_arrayLandroid_net_Network_Handler", ApiSince=22)>]
abstract member SetUnderlyingNetworks : Android.Net.Network[] -> Android.Net.VpnService.Builder
override this.SetUnderlyingNetworks : Android.Net.Network[] -> Android.Net.VpnService.Builder

Parameters

networks
Network[]

null if the VPN uses the system's default network, an empty array if the VPN has no underlying network, or the networks that the VPN uses, in decreasing order of preference.

Returns

This builder.

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.setUnderlyingNetworks(android.net.Network[]).

Applies to