NetworkSecurityConfig.Builder.SetCleartextTrafficPermitted(Boolean) 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.
Specifies whether cleartext traffic is permitted.
[Android.Runtime.Register("setCleartextTrafficPermitted", "(Z)Landroid/security/net/config/NetworkSecurityConfig$Builder;", "", ApiSince=37)]
public Android.Security.Net.Config.NetworkSecurityConfig.Builder SetCleartextTrafficPermitted(bool cleartextTrafficPermitted);
[<Android.Runtime.Register("setCleartextTrafficPermitted", "(Z)Landroid/security/net/config/NetworkSecurityConfig$Builder;", "", ApiSince=37)>]
member this.SetCleartextTrafficPermitted : bool -> Android.Security.Net.Config.NetworkSecurityConfig.Builder
Parameters
- cleartextTrafficPermitted
- Boolean
whether cleartext traffic is permitted.
Returns
the builder. This value cannot be null.
- Attributes
Remarks
Specifies whether cleartext traffic is permitted.
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.