DocumentSource

Represents a document source which may be a DataProvider or a file Uri.

Constructors

Link copied to clipboard
constructor(@NonNull fileUri: Uri)
Creates a new DocumentSource with file Uri as a source.
constructor(@NonNull fileUri: Uri, @Nullable password: String)
Creates a new DocumentSource with file Uri as a source.
constructor(@NonNull fileUri: Uri, @Nullable password: String, @Nullable contentSignature: String)
Creates a new DocumentSource with file Uri as a source.
constructor(@NonNull dataProvider: DataProvider)
Creates a new DocumentSource with a DataProvider as a source.
constructor(@NonNull dataProvider: DataProvider, @Nullable password: String)
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.

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val uid: String
Holds the UID of the URI-based or file-based source.

Functions

Link copied to clipboard
Returns a copy of this source with new password set.
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
Indicates whether the checkpoint was already created.
Link copied to clipboard
open fun isFileSource(): Boolean
Returns true if the source is a file URI not a data provider.
Link copied to clipboard
open fun toDataDescriptor(): NativeDataDescriptor
Converts the DocumentSource to a NativeDataDescriptor.
Link copied to clipboard
open fun toString(): String