Package com.geniusscansdk.camera
Interface ScanFragment.Callback
-
- Enclosing class:
- ScanFragment
public static interface ScanFragment.Callback
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
onCameraFailure()
void
onCameraReady()
void
onPreviewFrame(byte[] frame, int width, int height, int format)
Called as preview frames are displayed.void
onShutterTriggered()
-
-
-
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 framewidth
- width of the frameheight
- height of the frameformat
- format of the frame as defined inImageFormat
-
-