toSafeString

@NonNull
open fun toSafeString(@NonNull uri: @NonNull Uri): @NonNull String(source)

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/....

Return

Return a string representation of this URI that has common forms of PII redacted.

Parameters

uri

The uri for converted to string.