The ImageSourceAdapter class provides an interface for fetching and buffering images. It is an abstract class that needs to be implemented by a concrete class to provide actual functionality. Each ImageSourceAdapter instance object will correspond to a native instance object.

Hierarchy (View Summary)

Properties

isaId: string = ""

Methods

  • Adds an image to the buffer of the adapter.

    Parameters

    Returns void

  • Clear the image buffer.

    Returns Promise<void>

  • Destroy native instance. This object is no longer available after destroy().

    Returns void

  • Get the current number of images in the buffer.

    Returns Promise<number>

    • A promise that resolves to the number of images in the buffer.
  • Get a buffered image.

    Returns undefined | null | ImageData

    • The ImageData object if available, otherwisenull or undefined if no image is found in the buffer.
  • Get the maximum number of images that can be buffered.

    Returns Promise<number>

    • A promise that resolves to the maximum capability of the Buffer.
  • Returns void

  • Determines whether the buffer is empty.

    Returns Promise<boolean>

  • Set the maximum number of images that can be buffered at any time.

    Parameters

    • count: number

      The maximum capability of the Buffer.

    Returns Promise<void>

  • Start fetching images from the source to the Buffer of ImageSourceAdapter.

    Returns void

  • Stop fetching images from the source to the Buffer of ImageSourceAdapter.

    Returns void