Udostępnij za pośrednictwem


VcnManager.SetVcnConfig(ParcelUuid, VcnConfig) Method

Definition

Sets the VCN configuration for a given subscription group.

[Android.Runtime.Register("setVcnConfig", "(Landroid/os/ParcelUuid;Landroid/net/vcn/VcnConfig;)V", "GetSetVcnConfig_Landroid_os_ParcelUuid_Landroid_net_vcn_VcnConfig_Handler", ApiSince=31)]
[Android.Runtime.RequiresPermission("carrier privileges")]
public virtual void SetVcnConfig (Android.OS.ParcelUuid subscriptionGroup, Android.Net.Vcn.VcnConfig config);
[<Android.Runtime.Register("setVcnConfig", "(Landroid/os/ParcelUuid;Landroid/net/vcn/VcnConfig;)V", "GetSetVcnConfig_Landroid_os_ParcelUuid_Landroid_net_vcn_VcnConfig_Handler", ApiSince=31)>]
[<Android.Runtime.RequiresPermission("carrier privileges")>]
abstract member SetVcnConfig : Android.OS.ParcelUuid * Android.Net.Vcn.VcnConfig -> unit
override this.SetVcnConfig : Android.OS.ParcelUuid * Android.Net.Vcn.VcnConfig -> unit

Parameters

subscriptionGroup
ParcelUuid

the subscription group that the configuration should be applied to

config
VcnConfig

the configuration parameters for the VCN

Attributes

Remarks

Sets the VCN configuration for a given subscription group.

An app that has carrier privileges for any of the subscriptions in the given group may set a VCN configuration. If a configuration already exists for the given subscription group, it will be overridden. Any active VCN(s) may be forced to restart to use the new configuration.

This API is ONLY permitted for callers running as the primary user.

Java documentation for android.net.vcn.VcnManager.setVcnConfig(android.os.ParcelUuid, android.net.vcn.VcnConfig).

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