UriCompat
public
final
class
UriCompat
extends Object
| java.lang.Object
|
| ↳ |
androidx.core.net.UriCompat
|
Helper for accessing function in Uri in a backwards compatible fashion.
Summary
Public methods |
static
String
|
toSafeString(Uri uri)
Return a string representation of this URI that has common forms of PII redacted,
making it safer to use for logging purposes.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
toSafeString
public static String toSafeString (Uri uri)
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. |
| Returns |
String |
Return a string representation of this URI that has common forms of PII redacted.
|