Language

NetworkSecurityPolicy.Builder.SetBaseConfig(NetworkSecurityConfig) Method

Definition

Sets the base config for this network security policy (see base-config docs).

[Android.Runtime.Register("setBaseConfig", "(Landroid/security/net/config/NetworkSecurityConfig;)Landroid/security/NetworkSecurityPolicy$Builder;", "", ApiSince=37)]
public Android.Security.NetworkSecurityPolicy.Builder SetBaseConfig(Android.Security.Net.Config.NetworkSecurityConfig config);
[<Android.Runtime.Register("setBaseConfig", "(Landroid/security/net/config/NetworkSecurityConfig;)Landroid/security/NetworkSecurityPolicy$Builder;", "", ApiSince=37)>]
member this.SetBaseConfig : Android.Security.Net.Config.NetworkSecurityConfig -> Android.Security.NetworkSecurityPolicy.Builder

Parameters

config
NetworkSecurityConfig

the config to use as the base config. This value cannot be null.

Returns

the builder. This value cannot be null.

Attributes

Remarks

Sets the base config for this network security policy (see base-config docs). If unset, the base-config in the Network Security Configuration XML file of the app provided at Builder construction is used.

Android reference for android.security.NetworkSecurityPolicy.Builder.setBaseConfig.

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