{% setvar book_path %}/reference/kotlin/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

HostedFile

class HostedFile


Constants to access hosted file data and convenience methods for building Uris.

Summary

Nested types

HostedFile.FileHost

An enum containing all known storage services.

HostedFile.FileType

Enum used to indicate whether a file is a directory or regular file.

HostedFile.HostedFileColumn

An enum of the columns returned by the hosted file service.

Public constructors

Public functions

java-static Uri!
buildUri(host: HostedFile.FileHost!, fileName: String!)

Public constructors

HostedFile

HostedFile()

Public functions

buildUri

java-static fun buildUri(host: HostedFile.FileHost!, fileName: String!): Uri!