Interface BlobStore

All Known Implementing Classes:
SharedPreferencesBlobStore

public interface BlobStore
Interface for storing and retrieving blobs.
  • Method Summary

    Modifier and Type
    Method
    Description
    getBlob(String domain)
    Retrieves a blob for the given domain.
    void
    init(Context context)
    Initializes the BlobStore.
    void
    storeBlob(String domain, String blob)
    Stores a blob for the given domain.
  • Method Details

    • init

      void init(Context context)
      Initializes the BlobStore.
      Parameters:
      context - The application context.
    • getBlob

      String getBlob(String domain)
      Retrieves a blob for the given domain.
      Parameters:
      domain - The domain for which to retrieve the blob.
      Returns:
      The blob as a String, or null if not found.
    • storeBlob

      void storeBlob(String domain, String blob)
      Stores a blob for the given domain.
      Parameters:
      domain - The domain for which to store the blob.
      blob - The blob to store.