Language

NetworkSecurityPolicy.Builder.SetLocalhostConfig Method

Definition

Sets the localhost config for this network security policy (see Localhost config docs).

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

Parameters

config
NetworkSecurityConfig

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

Returns

the builder. This value cannot be null.

Attributes

Remarks

Sets the localhost config for this network security policy (see Localhost config docs).

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

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