Interface ScanFragment.Callback

  • Enclosing class:

    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.
        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
      • onPictureTaken

        void onPictureTaken​(int cameraOrientation,
        Triggered when a picture has been captured and stored into the provided ScanContainer
        cameraOrientation - angle between the camera sensor and the device natural orientation
        outputFile - contains the path where the captured image has been stored