UriCompat

class UriCompat
kotlin.Any
   ↳ androidx.core.net.UriCompat

Helper for accessing function in Uri in a backwards compatible fashion.

Summary

Public methods

static String
toSafeString(@NonNull uri: Uri)

Return a string representation of this URI that has common forms of PII redacted, making it safer to use for logging purposes.

Public methods

toSafeString

@NonNull static fun toSafeString(@NonNull uri: Uri): String

Return a string representation of this URI that has common forms of PII redacted, making it safer to use for logging purposes. For example, tel:800-466-4411 is returned as tel:xxx-xxx-xxxx and http://example.com/path/to/item/ is returned as http://example.com/....

Parameters
uri Uri: The uri for converted to string.
Return
String: Return a string representation of this URI that has common forms of PII redacted.