Interface ScanFragment.Callback

  • Enclosing class:
    ScanFragment

    public static interface ScanFragment.Callback
    • Method Detail

      • onCameraReady

        void onCameraReady()
      • onCameraFailure

        void onCameraFailure()
      • onShutterTriggered

        void onShutterTriggered()
      • onPreviewFrame

        void onPreviewFrame​(byte[] frame,
                            int width,
                            int height,
                            int format)
        Called as preview frames are displayed. This callback is invoked on the main thread so no intensive operation should be performed to avoid blocking the UI.
        Parameters:
        frame - the contents of the preview frame
        width - width of the frame
        height - height of the frame
        format - format of the frame as defined in ImageFormat