Interface SignatureStorage
-
- All Implemented Interfaces:
public interface SignatureStorage
Handles storing signatures. A signature is usually an ink signature (hand-written signature) that can be added to a PDF as an InkAnnotation.
Implement this class when creating your own signature storage, which you can then pass to the setSignatureStorage. Additionally, you can use our default DatabaseSignatureStorage with your own database name.
To set a default signature storage that will be used when the ElectronicSignatureFragment is invoked by the framework, use setSignatureStorage.
-
-
Method Summary
Modifier and Type Method Description abstract void
addSignature(@NonNull() Signature signature)
Adds the given signature to the signature storage. abstract void
addSignatures(@NonNull() List<Signature> signatures)
Adds the given signatures to the signature storage. abstract void
removeSignature(@NonNull() Signature signature)
Removes the given signature from the signature storage. abstract void
removeSignatures(@NonNull() List<Signature> signatures)
Removes the given signatures from the signature storage. abstract List<Signature>
getSignatures()
Gets the currently stored signatures. abstract void
clear()
Clears the storage by removing all the signatures from it. -
-
Method Detail
-
addSignature
abstract void addSignature(@NonNull() Signature signature)
Adds the given signature to the signature storage.
- Parameters:
signature
- Signature to add.
-
addSignatures
abstract void addSignatures(@NonNull() List<Signature> signatures)
Adds the given signatures to the signature storage.
- Parameters:
signatures
- List of signatures to add.
-
removeSignature
abstract void removeSignature(@NonNull() Signature signature)
Removes the given signature from the signature storage.
- Parameters:
signature
- Signature to remove.
-
removeSignatures
abstract void removeSignatures(@NonNull() List<Signature> signatures)
Removes the given signatures from the signature storage.
- Parameters:
signatures
- List of signatures to remove.
-
getSignatures
@NonNull() abstract List<Signature> getSignatures()
Gets the currently stored signatures.
- Returns:
List of signatures currently in the storage.
-
clear
abstract void clear()
Clears the storage by removing all the signatures from it.
-
-
-
-