Package-level declarations

Types

Link copied to clipboard
Helper for accessing features in ConnectivityManager.
Link copied to clipboard
class MailTo
MailTo URI parser.
Link copied to clipboard
Thrown when parsing a mailto URI has failed.
Link copied to clipboard
Helper for accessing features in TrafficStats.
Link copied to clipboard
class UriCompat
Helper for accessing function in Uri in a backwards compatible fashion.

Functions

Link copied to clipboard
fun Uri.toFile(): File

Creates a File from the given Uri. Note that this will throw an IllegalArgumentException when invoked on a Uri that lacks file scheme.

Link copied to clipboard
inline fun File.toUri(): Uri

Creates a Uri from the given file.

inline fun String.toUri(): Uri

Creates a Uri from the given encoded URI string.