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
Link copied to clipboard
Link copied to clipboard
open val fileSize: Long

Functions

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