Class DatabaseSignatureStorage

    • Constructor Detail

    • Method Detail

      • withName

         static DatabaseSignatureStorage withName(@NonNull() Context context, @NonNull() String databaseName)

        Creates a new DatabaseSignatureStorage with provided database name.

        Parameters:
        context - Context of the calling component.
        databaseName - Database name to use for this storage.
        Returns:

        A signature storage using SQLite database with the provided name.

      • addSignature

         void addSignature(@NonNull() Signature signature)

        Adds the given signature to the signature storage.

        Parameters:
        signature - Signature to add.
      • addSignatures

         void addSignatures(@NonNull() List<Signature> signatures)

        Adds the given signatures to the signature storage.

        Parameters:
        signatures - List of signatures to add.
      • removeSignature

         void removeSignature(@NonNull() Signature signature)

        Removes the given signature from the signature storage.

        Parameters:
        signature - Signature to remove.
      • removeSignatures

         void removeSignatures(@NonNull() List<Signature> signatures)

        Removes the given signatures from the signature storage.

        Parameters:
        signatures - List of signatures to remove.
      • clear

         void clear()

        Clear all the entries from the database.

      • deleteDatabase

         void deleteDatabase(@NonNull() Context context)

        Deletes the database used by this signature storage.

        Parameters:
        context - Context used to access the database.