Dela via


NetworkSecurityPolicy.InvokeIsCleartextTrafficPermitted(String) Method

Definition

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

Returns

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.

Java documentation for android.security.NetworkSecurityPolicy.isCleartextTrafficPermitted(java.lang.String).

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