UriKt

public final class UriKt


Summary

Public methods

static final @NonNull File
UriKt.toFile(Uri receiver)

Creates a File from the given Uri.

static final @NonNull Uri
UriKt.toUri(String receiver)

Creates a Uri from the given encoded URI string.

static final @NonNull Uri
UriKt.toUri(File receiver)

Creates a Uri from the given file.

Public methods

UriKt.toFile

public static final @NonNull File UriKt.toFile(Uri receiver)

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

UriKt.toUri

public static final @NonNull Uri UriKt.toUri(String receiver)

Creates a Uri from the given encoded URI string.

See also
parse

UriKt.toUri

public static final @NonNull Uri UriKt.toUri(File receiver)

Creates a Uri from the given file.

See also
fromFile