Interface ImageDB.LoadImageCallback

Enclosing class:
ImageDB

public static interface ImageDB.LoadImageCallback
Callback interface for loading a single image.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Called when the image load operation fails.
    void
    Called when the image is loaded successfully.
  • Method Details

    • onSuccess

      void onSuccess(Image image)
      Called when the image is loaded successfully.
      Parameters:
      image - the loaded image, or null if no image exists for the provided document ID
    • onFailure

      void onFailure(Exception e)
      Called when the image load operation fails.
      Parameters:
      e - the exception describing the failure