androidx.core.net


Classes

ConnectivityManagerCompat

Helper for accessing features in ConnectivityManager.

MailTo

MailTo URI parser.

TrafficStatsCompat

Helper for accessing features in TrafficStats.

UriCompat

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

Exceptions

ParseException

Thrown when parsing a mailto URI has failed.

Extension functions summary

File

Creates a File from the given Uri.

inline Uri

Creates a Uri from the given encoded URI string.

inline Uri

Creates a Uri from the given file.

Extension functions

toFile

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.

toUri

inline fun String.toUri(): Uri

Creates a Uri from the given encoded URI string.

See also
parse

toUri

inline fun File.toUri(): Uri

Creates a Uri from the given file.

See also
fromFile