DevicePolicyManager.PreferentialNetworkServiceConfigs Property

Definition

Get preferential network configuration PreferentialNetworkServiceConfig -or- Sets preferential network configurations.

public virtual System.Collections.Generic.IList<Android.App.Admin.PreferentialNetworkServiceConfig> PreferentialNetworkServiceConfigs { [Android.Runtime.Register("getPreferentialNetworkServiceConfigs", "()Ljava/util/List;", "GetGetPreferentialNetworkServiceConfigsHandler", ApiSince=33)] get; [Android.Runtime.Register("setPreferentialNetworkServiceConfigs", "(Ljava/util/List;)V", "GetSetPreferentialNetworkServiceConfigs_Ljava_util_List_Handler", ApiSince=33)] set; }
[<get: Android.Runtime.Register("getPreferentialNetworkServiceConfigs", "()Ljava/util/List;", "GetGetPreferentialNetworkServiceConfigsHandler", ApiSince=33)>]
[<set: Android.Runtime.Register("setPreferentialNetworkServiceConfigs", "(Ljava/util/List;)V", "GetSetPreferentialNetworkServiceConfigs_Ljava_util_List_Handler", ApiSince=33)>]
member this.PreferentialNetworkServiceConfigs : System.Collections.Generic.IList<Android.App.Admin.PreferentialNetworkServiceConfig> with get, set

Property Value

preferential network configuration.

Attributes

Remarks

Property getter documentation:

Get preferential network configuration PreferentialNetworkServiceConfig

Java documentation for android.app.admin.DevicePolicyManager.getPreferentialNetworkServiceConfigs().

Property setter documentation:

Sets preferential network configurations. PreferentialNetworkServiceConfig

An example of a supported preferential network service is the Enterprise slice on 5G networks. For devices on 4G networks, the profile owner needs to additionally configure enterprise APN to set up data call for the preferential network service. These APNs can be added using #addOverrideApn.

By default, preferential network service is disabled on the work profile and fully managed devices, on supported carriers and devices. Admins can explicitly enable it with this API. If admin wants to have multiple enterprise slices, it can be configured by passing list of PreferentialNetworkServiceConfig objects.

Java documentation for android.app.admin.DevicePolicyManager.setPreferentialNetworkServiceConfigs(java.util.List<android.app.admin.PreferentialNetworkServiceConfig>).

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