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.

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
open fun isFileSource(): Boolean
Returns true if the source is a file URI not a data provider.
Link copied to clipboard
Returns true if the source is remote (http/https) URL.
Link copied to clipboard
open fun toString(): String