Interface CameraDataListener


public interface CameraDataListener
CameraDataListener provides camera frames for the application to process.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    This method is called when a camera frame is available.
  • Method Details

    • onPreviewFrame

      void onPreviewFrame(@NonNull ImageData data)
      This method is called when a camera frame is available. Both legacy Camera as well as Camera2 image formats are supported by this interface. Image frames received by this method should not be cached or stored, as the memory is released/reused once the method exits.
      Parameters:
      data - Frame data as ImageData object