Document Source
class DocumentSource
Represents a document source which may be a DataProvider or a file Uri.
Constructors
Link copied to clipboard
Creates a new DocumentSource with file Uri as a source.
Creates a new DocumentSource with file Uri as a source.
Creates a new DocumentSource with file Uri as a source.
Creates a new DocumentSource with a DataProvider as a source.
Creates a new DocumentSource with a DataProvider as a source.
constructor(@NonNull dataProvider: DataProvider, @Nullable password: String, @Nullable contentSignature: String)
Creates a new DocumentSource with a DataProvider as a source.
constructor(@Nullable fileUri: Uri, @Nullable dataProvider: DataProvider, @Nullable password: String, @Nullable contentSignature: String)
Creates a new DocumentSource with file Uri as a source.
constructor(@Nullable fileUri: Uri, @Nullable dataProvider: DataProvider, @Nullable password: String, @Nullable contentSignature: String, @Nullable checkpointFile: File, checkpointAlreadyCreated: Boolean)
Creates a new DocumentSource with file Uri as a source.
constructor(@NonNull documentSource: DocumentSource, @NonNull checkpoint: File, checkpointAlreadyCreated: Boolean)
Creates a new DocumentSource with a File as a checkpoint source.
Functions
Link copied to clipboard
Returns a copy of this source with new password set.
Link copied to clipboard
Indicates whether the checkpoint was already created.
Link copied to clipboard
Returns true if the source is a file URI not a data provider.
Link copied to clipboard
Converts the DocumentSource to a NativeDataDescriptor.