NetworkSecurityConfig.CreateLocalhostConfig Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a NetworkSecurityConfig for localhost.
[Android.Runtime.Register("createLocalhostConfig", "()Landroid/security/net/config/NetworkSecurityConfig;", "", ApiSince=37)]
public static Android.Security.Net.Config.NetworkSecurityConfig CreateLocalhostConfig();
[<Android.Runtime.Register("createLocalhostConfig", "()Landroid/security/net/config/NetworkSecurityConfig;", "", ApiSince=37)>]
static member CreateLocalhostConfig : unit -> Android.Security.Net.Config.NetworkSecurityConfig
Returns
the NetworkSecurityConfig. This value cannot be null.
- Attributes
Remarks
Returns a NetworkSecurityConfig for localhost.
The localhost configuration has the following properties: Cleartext traffic is permitted; Certificate Transparency is disabled.
Android reference for android.security.net.config.NetworkSecurityConfig.createLocalhostConfig.
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.