Language

VcnConfig.Builder.SetRestrictedUnderlyingNetworkTransports Method

Definition

Sets transports that will be restricted by the VCN.

[Android.Runtime.Register("setRestrictedUnderlyingNetworkTransports", "(Ljava/util/Set;)Landroid/net/vcn/VcnConfig$Builder;", "", ApiSince=34)]
public Android.Net.Vcn.VcnConfig.Builder SetRestrictedUnderlyingNetworkTransports(System.Collections.Generic.ICollection<Java.Lang.Integer> transports);
[<Android.Runtime.Register("setRestrictedUnderlyingNetworkTransports", "(Ljava/util/Set;)Landroid/net/vcn/VcnConfig$Builder;", "", ApiSince=34)>]
member this.SetRestrictedUnderlyingNetworkTransports : System.Collections.Generic.ICollection<Java.Lang.Integer> -> Android.Net.Vcn.VcnConfig.Builder

Parameters

transports
ICollection<Integer>

Transports that will be restricted by the VCN. Networks that include any of the transports will be marked as restricted. Wifi is restricted by default. Specify transport values as Integer instances. This value cannot be null.

Returns

this Builder instance, for chaining. This value cannot be null.

Attributes

Exceptions

A transport type is not supported.

Remarks

Sets transports that will be restricted by the VCN.

In general, apps will not be able to bind to, or use a restricted network. In other words, unless the network type is marked restricted, any app can opt to use underlying networks, instead of through the VCN.

Android reference for android.net.vcn.VcnConfig.Builder.setRestrictedUnderlyingNetworkTransports.

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