NetworkSecurityPolicy.InvokeIsCleartextTrafficPermitted(String) 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 whether cleartext network traffic (e.
[Android.Runtime.Register("isCleartextTrafficPermitted", "(Ljava/lang/String;)Z", "GetInvokeIsCleartextTrafficPermitted_Ljava_lang_String_Handler", ApiSince=24)]
public virtual bool InvokeIsCleartextTrafficPermitted(string? hostname);
[<Android.Runtime.Register("isCleartextTrafficPermitted", "(Ljava/lang/String;)Z", "GetInvokeIsCleartextTrafficPermitted_Ljava_lang_String_Handler", ApiSince=24)>]
abstract member InvokeIsCleartextTrafficPermitted : string -> bool
override this.InvokeIsCleartextTrafficPermitted : string -> bool
Parameters
- hostname
- String
The destination host name whose cleartext traffic policy is checked.
Returns
true if this process's policy permits unencrypted network traffic to hostname; otherwise, false.
- Attributes
Remarks
Returns whether cleartext network traffic (e.g. HTTP, FTP, XMPP, IMAP, SMTP -- without TLS or STARTTLS) is permitted for communicating with hostname for this process.
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.