| java.lang.Object | |
| ↳ | com.pspdfkit.signatures.storage.DatabaseSignatureStorage |
Our default SignatureStorage implementation that uses the SQLite database to store signatures.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
addSignature(Signature signature)
Adds the given signature to the signature storage.
| ||||||||||
| void |
addSignatures(List<Signature> signatures)
Adds the given signatures to the signature storage.
| ||||||||||
| void |
clear()
Clear all the entries from the database.
| ||||||||||
| void |
deleteDatabase(Context context)
Deletes the database used by this signature storage.
| ||||||||||
| List<Signature> |
getSignatures()
Gets the currently stored signatures.
| ||||||||||
| void |
removeSignature(Signature signature)
Removes the given signature from the signature storage.
| ||||||||||
| void |
removeSignatures(List<Signature> signatures)
Removes the given signatures from the signature storage.
| ||||||||||
| static DatabaseSignatureStorage |
withName(Context context, String databaseName)
Creates a new
DatabaseSignatureStorage with provided database name. | ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
com.pspdfkit.signatures.storage.SignatureStorage
| |||||||||||
Adds the given signature to the signature storage.
| signature | Signature to add. |
|---|
| JSONException | |
|---|---|
| SQLException |
Adds the given signatures to the signature storage.
| signatures | List of signatures to add. |
|---|
| JSONException | |
|---|---|
| SQLException |
Deletes the database used by this signature storage.
| context | Context used to access the database. |
|---|
Gets the currently stored signatures.
| JSONException | |
|---|---|
| SQLException |
Removes the given signature from the signature storage.
| signature | Signature to remove. |
|---|
Removes the given signatures from the signature storage.
| signatures | List of signatures to remove. |
|---|
Creates a new DatabaseSignatureStorage with provided database name.
| context | Context of the calling component. |
|---|---|
| databaseName | Database name to use for this storage. |