Interface PreviewBuffer

  • All Implemented Interfaces:

    public interface PreviewBuffer

    Manages access to preview buffer of the Camera

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Modifier and Type Field Description
    • Constructor Summary

      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • Method Detail

      • addFrameHandler

         abstract Unit addFrameHandler(FrameHandler frameHandler)

        Registers FrameHandler which will receive preview frames from camera.

        Note, that handlers can intercept frame by returning true from FrameHandler.handleFrame. In such case no other handler will receive callbacks for current frame. Therefore, order in which handlers are added matters.

        All callbacks are invoked from the worker thread, so it is safe to perform "heavy" operations.

        frameHandler - handler which will receive preview frames.