Share via


VpnService.SetUnderlyingNetworks(Network[]) Method

Definition

Sets the underlying networks used by the VPN for its upstream connections.

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

Parameters

networks
Network[]

An array of networks the VPN uses to tunnel traffic to/from its servers.

Returns

true on success.

Attributes

Remarks

Java documentation for android.net.VpnService.setUnderlyingNetworks(.*Network[]).

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