EmbeddedFileSource

Represents a source of embedded file data.

Constructors

Link copied to clipboard
constructor(@NonNull fileDataProvider: DataProvider, @NonNull fileName: String, @Nullable fileDescription: String)
Constructs an embedded file source with data served from DataProvider.
constructor(@NonNull fileUri: Uri, @NonNull fileName: String, @Nullable fileDescription: String)
Constructs an embedded file source with data served from file content provider URI.
constructor(@NonNull fileData: Array<Byte>, @NonNull fileName: String, @Nullable fileDescription: String)
Constructs an embedded file source with data served from memory.

Properties

Link copied to clipboard
The optional description of the embedded file.
Link copied to clipboard
The user-displayable name of the embedded file.
Link copied to clipboard
open val fileSize: Long
The size of the embedded file in bytes, or FILE_SIZE_UNKNOWN if unknown.

Functions

Link copied to clipboard
Returns data provider with data for the embedded file.