Package io.scanbot.sdk.camera
Class FrameHandler
-
- All Implemented Interfaces:
public abstract class FrameHandler
Handles camera preview frames.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final class
FrameHandler.Frame
Represents captured frame data and bounds.
-
Constructor Summary
Constructors Constructor Description FrameHandler()
-
Method Summary
Modifier and Type Method Description Boolean
isEnabled()
Toggle frame processing. Unit
setEnabled(Boolean isEnabled)
Toggle frame processing. final Boolean
processFrame(FrameHandler.Frame previewFrame)
Internal method that is used by the camera view to process frames. abstract Boolean
handleFrame(FrameHandler.Frame previewFrame)
Invoked for every new camera preview frame. -
-
Method Detail
-
isEnabled
Boolean isEnabled()
Toggle frame processing.
true
if data detection is enabled.false
if data detection is disabled, i.e. incoming frames are skipped.
-
setEnabled
Unit setEnabled(Boolean isEnabled)
Toggle frame processing.
true
if data detection is enabled.false
if data detection is disabled, i.e. incoming frames are skipped.
-
processFrame
final Boolean processFrame(FrameHandler.Frame previewFrame)
Internal method that is used by the camera view to process frames.
-
handleFrame
abstract Boolean handleFrame(FrameHandler.Frame previewFrame)
Invoked for every new camera preview frame.
- Parameters:
previewFrame
- captured preview frame data
-
-
-
-