Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

androidx.core.net

Classes

ConnectivityManagerCompat

Helper for accessing features in ConnectivityManager.

TrafficStatsCompat

Helper for accessing features in TrafficStats.

UriCompat

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

Extension functions summary

For android.net.Uri
File

Creates a File from the given Uri.

For java.io.File
Uri

Creates a Uri from the given file.

For kotlin.String
Uri

Creates a Uri from the given encoded URI string.

Extension functions

toFile

fun Uri.toFile(): File

Creates a File from the given Uri.

toUri

inline fun File.toUri(): Uri

Creates a Uri from the given file.

See Also

toUri

inline fun String.toUri(): Uri

Creates a Uri from the given encoded URI string.

See Also