DatabaseSignatureStorage

Our default SignatureStorage implementation that uses the SQLite database to store signatures.

Properties

Link copied to clipboard
val SIGNATURE_DB_NAME: String = "pspdfkit_db"

Functions

Link copied to clipboard
open fun addSignature(@NonNull signature: Signature)
Adds the given signature to the signature storage.
Link copied to clipboard
open fun addSignatures(@NonNull signatures: List<Signature>)
Adds the given signatures to the signature storage.
Link copied to clipboard
open fun clear()
Clear all the entries from the database.
Link copied to clipboard
open fun deleteDatabase(@NonNull context: Context)
Deletes the database used by this signature storage.
Link copied to clipboard
Gets the currently stored signatures.
Link copied to clipboard
open fun removeSignature(@NonNull signature: Signature)
Removes the given signature from the signature storage.
Link copied to clipboard
open fun removeSignatures(@NonNull signatures: List<Signature>)
Removes the given signatures from the signature storage.
Link copied to clipboard
open fun withName(@NonNull context: Context, @NonNull databaseName: String): DatabaseSignatureStorage
Creates a new DatabaseSignatureStorage with provided database name.