Interface CameraManager.Callback

  • Enclosing class:
    CameraManager

    public static interface CameraManager.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
      • onPictureTaken

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