BitmapFrameSource#
Defined in package com.scandit.datacapture.core.source
-
BitmapFrameSource
# class BitmapFrameSource
: FrameSourceAdded in version 6.3.0
Emits a frame from the provided Bitmap.
To emit the frame set this object as the frame source for the DataCaptureContext and turn it on by changing the desired state to FrameSourceState.ON. This frame source will turn off automatically after the frame is emitted.
-
of(bitmap)
# static @NonNull BitmapFrameSource
of
(Bitmap bitmap)Added in version 6.3.0
Constructs a new BitmapFrameSource from the provided Bitmap. This Bitmap is required to have config ARGB_8888.
-
desiredState
# FrameSourceState
getDesiredState
()Added in version 6.3.0
Implemented from FrameSource. See FrameSource.desiredState.
-
currentState
# FrameSourceState
getCurrentState
()Added in version 6.3.0
Implemented from FrameSource. See FrameSource.currentState.
-
addListener(listener)
# void
addListener
(@Nullable FrameSourceListener listener)Added in version 6.3.0
Implemented from FrameSource. See FrameSource.addListener().
-
removeListener(listener)
# void
removeListener
(@Nullable FrameSourceListener listener)Added in version 6.3.0
Implemented from FrameSource. See FrameSource.removeListener().
-
switchToDesiredState(state, whenDone)
# void
switchToDesiredState
(FrameSourceState state, @Nullable Callback<Boolean> whenDone)Added in version 6.3.0
Implemented from FrameSource. See FrameSource.switchToDesiredState().
-