On this page

Stuck? Open a support ticket and the barKoder team will help. Open a ticket

API reference

Every method, setting, enum and result of the barKoder Android SDK, grouped by what you do with it.

Scanning & session #

GetDeviceId #

Java
static String GetDeviceId()

Retrieves the unique device identifier used by the Barkoder SDK.

GetLibVersion #

Java
static String GetLibVersion()

Retrieves the version of the native Barkoder library as a string.

GetLicenseInfo #

Java
static Map GetLicenseInfo()

Retrieves information about the current license as a map.

GetVersion #

Java
static String GetVersion()

Retrieves the current version of the Barkoder SDK as a string.

startScanning #

Java
void startScanning(BarkoderResultCallback)

On BarkoderView. Initiates the barcode scanning process, allowing the application to detect and decode barcodes from the device's camera feed. Throws NullPointerException if the BarkoderView config is not set.

stopScanning #

Java
void stopScanning()

On BarkoderView. Halts the barcode scanning process, stopping the camera from capturing and processing barcode information.

config #

Java
BarkoderConfig config

On BarkoderView. The BarkoderConfig used by this view to configure the scanning process.

freezeScanning #

Java
void freezeScanning()

On BarkoderView. Freezes the AR scanning session by capturing a still image from the camera feed while keeping AR overlays visible. Available only when AR mode is enabled.

pauseScanning #

Java
void pauseScanning()

On BarkoderView. Temporarily suspends the barcode scanning process, pausing the camera feed without completely stopping the scanning session.

selectVisibleBarcodes #

Java
void selectVisibleBarcodes()

On BarkoderView. Selects all barcodes that are currently visible in AR mode and sends them through the BarkoderResultCallback. Available only when AR mode is enabled.

setDynamicExposure #

Java
void setDynamicExposure(int)

On BarkoderView. Configures dynamic exposure compensation based on the provided intensity value. A value between 0 and 10 is expected, where 0 disables dynamic exposure.

setPerformanceCallback #

Java
void setPerformanceCallback(BarkoderPerformanceCallback)

On BarkoderView. Sets the callback that receives scanning performance data.

setVideoStabilization #

Java
void setVideoStabilization(boolean)

On BarkoderView. Enables or disables video stabilization for the camera preview.

unfreezeScanning #

Java
void unfreezeScanning()

On BarkoderView. Unfreezes a previously frozen AR scanning session and resumes live camera scanning and overlay updates. Available only when AR mode is enabled.

getPowerSavingMode #

Java
int getPowerSavingMode()

On BarkoderConfig. Retrieves the power saving level. Increasing the level reduces CPU and battery usage by limiting frame processing. 0 - Disabled (full performance), 1 - Light saving, 2 - Medium saving, 3 - High saving, 4 - Maximum saving.

GetThreadsLimit #

Java
static int GetThreadsLimit()

On BarkoderConfig. Retrieves the threads limit.

setPowerSavingMode #

Java
void setPowerSavingMode(int)

On BarkoderConfig. Sets the power saving level. Increasing the level reduces CPU and battery usage by limiting frame processing. 0 - Disabled (full performance), 1 - Light saving, 2 - Medium saving, 3 - High saving, 4 - Maximum saving.

SetThreadsLimit #

Java
static void SetThreadsLimit(int)

On BarkoderConfig. Sets the threads limit. Throws IllegalArgumentException if the value is greater than the maximum threads available on the device.

applyConfigSettingsFromFile #

Java
static void applyConfigSettingsFromFile(BarkoderConfig, String, BarkoderConfigCallback)

On BarkoderHelper. Loads configuration properties from a JSON file path and applies them to the provided config.

applyConfigSettingsFromTemplate #

Java
static void applyConfigSettingsFromTemplate(Context, BarkoderConfig, BarkoderConfigTemplate, BarkoderConfigCallback)

On BarkoderHelper. Applies configuration parameters from a predefined template.

applyConfigSettingsFromURL #

Java
static void applyConfigSettingsFromURL(BarkoderConfig, String, BarkoderConfigCallback)

On BarkoderHelper. Retrieves configuration properties from a URL and applies them to the provided config.

applyJsonToConfig #

Java
static void applyJsonToConfig(BarkoderConfig, JSONObject)

On BarkoderHelper. Retrieves config properties from a JSON and applies them to the provided config.

configToJSONString #

Java
static String configToJSONString(BarkoderConfig)

On BarkoderHelper. Exports the provided configuration into a JSON string.

Camera #

startCamera #

Java
void startCamera()

On BarkoderView. Starts the camera preview only, without decoding.

getMaxZoomFactor #

Java
void getMaxZoomFactor(MaxZoomAvailableCallback)

On BarkoderView. Retrieves the maximum available zoom factor for the device's camera. Zoom factor is received in MaxZoomAvailableCallback.

isFlashAvailable #

Java
void isFlashAvailable(FlashAvailableCallback)

On BarkoderView. Checks whether the device has a built-in flash (torch) that can be used for illumination during barcode scanning. Result is received in FlashAvailableCallback.

isPreviewMirrored #

Java
boolean isPreviewMirrored()

On BarkoderView. Checks whether the camera preview is horizontally mirrored.

setCamera #

Java
void setCamera(BarkoderCameraPosition)

On BarkoderView. Sets which camera (front or back) is used for scanning.

setCameraCallback #

Java
void setCameraCallback(CameraCallback)

On BarkoderView. Sets the callback that receives camera events such as when the camera is opened, ready or fails to open.

setCentricFocusAndExposure #

Java
void setCentricFocusAndExposure(boolean)

On BarkoderView. Configures the camera to use the center of the viewfinder for focus and exposure.

setFlashEnabled #

Java
void setFlashEnabled(boolean)

On BarkoderView. Enables or disables the device's flash (torch) for illumination during barcode scanning.

setPreviewFramesCallback #

Java
void setPreviewFramesCallback(BarkoderPreviewFramesCallback)

On BarkoderView. Set the camera frames callback if you only want to receive frames/images without decoding them, allowing you to work with the frames directly. Remember to close the image when finished.

setPreviewMirrored #

Java
void setPreviewMirrored(boolean)

On BarkoderView. Controls whether the camera preview is horizontally mirrored.

setZoomFactor #

Java
void setZoomFactor(float)

On BarkoderView. Sets the zoom factor for the device's camera, adjusting the level of zoom during barcode scanning.

getBarkoderResolution #

Java
BarkoderResolution getBarkoderResolution()

On BarkoderConfig. Retrieves the resolution for barcode scanning.

isLocationInPreviewEnabled #

Java
boolean isLocationInPreviewEnabled()

On BarkoderConfig. Gets the value of locationInPreviewEnabled which enables or disables the display of barcode location information on the camera preview. If enabled, the scanned barcode will be marked on the preview screen for a short time.

isPinchToZoomEnabled #

Java
boolean isPinchToZoomEnabled()

On BarkoderConfig. Checks if pinch to zoom is enabled.

setBarkoderResolution #

Java
void setBarkoderResolution(BarkoderResolution)

On BarkoderConfig. Sets the resolution for barcode scanning.

setCameraOpenDelayMs #

Java
void setCameraOpenDelayMs(int)

On BarkoderConfig. Sets the delay, in milliseconds, before the camera is opened.

setLocationInPreviewEnabled #

Java
void setLocationInPreviewEnabled(boolean)

On BarkoderConfig. Enables or disables the display of barcode location information on the camera preview.

setPinchToZoomEnabled #

Java
void setPinchToZoomEnabled(boolean)

On BarkoderConfig. Enables or disables the pinch-to-zoom feature for adjusting the zoom level during barcode scanning.

Barcode types #

GetCustomOption #

Java
static int GetCustomOption(Barkoder.Config, String)

Retrieves the value of a custom decoder option by key. See details about available options and their values.

SetCustomOption #

Java
static void SetCustomOption(Barkoder.Config, String, int)

Sets a custom decoder option by key. See details about available options and their values.

getDecoderConfig #

Java
Barkoder.Config getDecoderConfig()

On BarkoderConfig. Obtain the decoder config object. This object allows you to enable or disable decoders (barcode types) and configure each one individually.

Results #

captureImage #

Java
void captureImage()

On BarkoderView. Captures the latest available camera frame and returns it through the BarkoderResultCallback scanningFinished callback (without decoding barcodes).

GetMulticodeCachingDuration #

Java
static int GetMulticodeCachingDuration()

On BarkoderConfig. Retrieves the caching duration (in milliseconds) for multi-code results.

getShowDuplicatesLocations #

Java
boolean getShowDuplicatesLocations()

On BarkoderConfig. Gets whether duplicate barcode locations are shown on the camera preview when the same code is scanned multiple times as Boolean.

getThresholdBetweenDuplicatesScans #

Java
int getThresholdBetweenDuplicatesScans()

On BarkoderConfig. Retrieves the threshold between duplicate scans.

getThumbnailOnResulEnabled #

Java
boolean getThumbnailOnResulEnabled()

On BarkoderConfig. Retrieves whether barcode thumbnail on result is enabled.

isBeepOnSuccessEnabled #

Java
boolean isBeepOnSuccessEnabled()

On BarkoderConfig. Retrieves the value indicating whether a beep sound is played on successful barcode scanning.

isCloseSessionOnResultEnabled #

Java
boolean isCloseSessionOnResultEnabled()

On BarkoderConfig. Checks if the session is closed on result enabled; true if the preview will be closed after a result, false otherwise.

isImageResultEnabled #

Java
boolean isImageResultEnabled()

On BarkoderConfig. Checks if the image result is enabled. Image result is received in BarkoderResultCallback as Bitmap.

IsMulticodeCachingEnabled #

Java
static boolean IsMulticodeCachingEnabled()

On BarkoderConfig. Retrieves whether multi-code caching is enabled.

isVibrateOnSuccessEnabled #

Java
boolean isVibrateOnSuccessEnabled()

On BarkoderConfig. Retrieves the value indicating whether vibration is enabled on successful barcode scanning.

setBeepOnSuccessEnabled #

Java
void setBeepOnSuccessEnabled(boolean)

On BarkoderConfig. Enables or disables the audible beep sound upon successfully decoding a barcode.

setCloseSessionOnResultEnabled #

Java
void setCloseSessionOnResultEnabled(boolean)

On BarkoderConfig. Enables or disables the automatic closing of the scanning session upon detecting a barcode result.

setImageResultEnabled #

Java
void setImageResultEnabled(boolean)

On BarkoderConfig. Enables or disables the capturing and processing of image data when a barcode is successfully detected.

SetMulticodeCachingDuration #

Java
static void SetMulticodeCachingDuration(int)

On BarkoderConfig. Sets the caching duration (in milliseconds) for multi-code results.

SetMulticodeCachingEnabled #

Java
static void SetMulticodeCachingEnabled(boolean)

On BarkoderConfig. Sets whether multi-code caching is enabled.

setShowDuplicatesLocations #

Java
void setShowDuplicatesLocations(boolean)

On BarkoderConfig. Sets whether duplicate barcode locations are shown on the camera preview when the same code is scanned multiple times.

setThresholdBetweenDuplicatesScans #

Java
void setThresholdBetweenDuplicatesScans(int)

On BarkoderConfig. Sets the threshold between duplicate scans.

setThumbnailOnResultEnabled #

Java
void setThumbnailOnResultEnabled(boolean)

On BarkoderConfig. Sets whether to enable barcode thumbnail on result.

setVibrateOnSuccessEnabled #

Java
void setVibrateOnSuccessEnabled(boolean)

On BarkoderConfig. Enables or disables the device vibration upon successfully decoding a barcode.

sadlImage #

Java
static Bitmap sadlImage(Barkoder.BKKeyValue[])

On BarkoderHelper. Builds the SADL image as a Bitmap from the provided key-value data.

scanImage #

Java
static void scanImage(Bitmap, BarkoderConfig, BarkoderResultCallback, Context)

On BarkoderHelper. Scans barcodes from a bitmap image.

Region & overlay #

getLocationLineColor #

Java
int getLocationLineColor()

On BarkoderConfig. Retrieves the color code representing the line color used to indicate the location of detected barcodes.

getLocationLineWidth #

Java
float getLocationLineWidth()

On BarkoderConfig. Retrieves the current width setting for the lines indicating the location of detected barcodes on the camera feed.

getRegionOfInterest #

Java
Barkoder.BKRect getRegionOfInterest()

On BarkoderConfig. Retrieves the region of interest (ROI).

getRoiCenterMark #

Java
BarkoderRoiCenterMark getRoiCenterMark()

On BarkoderConfig. Returns the currently configured ROI center mark.

getRoiLineColor #

Java
int getRoiLineColor()

On BarkoderConfig. Retrieves the color code representing the line color of the Region of Interest (ROI) on the camera preview.

getRoiLineWidth #

Java
float getRoiLineWidth()

On BarkoderConfig. Retrieves the current width setting for the lines outlining the Region of Interest (ROI) on the camera preview.

getRoiOverlayBackgroundColor #

Java
int getRoiOverlayBackgroundColor()

On BarkoderConfig. Retrieves the color code representing the background color of the overlay within the Region of Interest (ROI) on the camera preview.

getScanningIndicatorAnimation #

Java
int getScanningIndicatorAnimation()

On BarkoderConfig. Retrieves the scanning indicator animation mode as Int.

getScanningIndicatorColor #

Java
int getScanningIndicatorColor()

On BarkoderConfig. Retrieves the color of the scanning indicator as Int.

getScanningIndicatorWidth #

Java
float getScanningIndicatorWidth()

On BarkoderConfig. Retrieves the width of the scanning indicator as Float.

isLocationInImageResultEnabled #

Java
boolean isLocationInImageResultEnabled()

On BarkoderConfig. Checks if barcode location in the image result is enabled. If enabled, the barcode in the result image will be marked.

isRegionOfInterestVisible #

Java
boolean isRegionOfInterestVisible()

On BarkoderConfig. Checks if the region of interest (ROI) is visible.

isScanningIndicatorAlwaysVisible #

Java
boolean isScanningIndicatorAlwaysVisible()

On BarkoderConfig. Retrieves whether the scanning indicator is always visible as Boolean.

setLocationInImageResultEnabled #

Java
void setLocationInImageResultEnabled(boolean)

On BarkoderConfig. Enables or disables the inclusion of barcode location information within the image data result.

setLocationLineColor #

Java
void setLocationLineColor(int)

On BarkoderConfig. Sets the color of the lines used to indicate the location of detected barcodes on the camera feed.

setLocationLineWidth #

Java
void setLocationLineWidth(float)

On BarkoderConfig. Sets the width of the lines indicating the location of detected barcodes on the camera feed.

setRegionOfInterest #

Java
void setRegionOfInterest(float, float, float, float)

On BarkoderConfig. Defines the Region of Interest (ROI) on the camera preview for barcode scanning, specifying an area where the application focuses on detecting barcodes. Throws IllegalArgumentException if the input params are not valid.

setRegionOfInterestVisible #

Java
void setRegionOfInterestVisible(boolean)

On BarkoderConfig. Sets the visibility of the Region of Interest (ROI) on the camera preview.

setRoiCenterMark #

Java
void setRoiCenterMark(BarkoderRoiCenterMark)

On BarkoderConfig. Sets the center mark displayed in the scanner's Region of Interest (ROI). The barcode scanner will scan only within the ROI, with the selected center mark indicating the center of the scanning area. Available BarkoderRoiCenterMark modes: POINT - displays a point at the center of the ROI; CROSSHAIR - displays a crosshair at the center of the ROI; NONE - no center mark is displayed.

setRoiLineColor #

Java
void setRoiLineColor(int)

On BarkoderConfig. Sets the color of the lines outlining the Region of Interest (ROI) for barcode scanning on the camera feed.

setRoiLineWidth #

Java
void setRoiLineWidth(float)

On BarkoderConfig. Sets the width of the lines outlining the Region of Interest (ROI) for barcode scanning on the camera feed.

setRoiOverlayBackgroundColor #

Java
void setRoiOverlayBackgroundColor(int)

On BarkoderConfig. Sets the background color of the overlay within the Region of Interest (ROI) for barcode scanning on the camera feed.

setScanningIndicatorAlwaysVisible #

Java
void setScanningIndicatorAlwaysVisible(boolean)

On BarkoderConfig. Sets whether the scanning indicator is always visible on the camera preview.

setScanningIndicatorAnimation #

Java
void setScanningIndicatorAnimation(int)

On BarkoderConfig. Sets the scanning indicator animation mode as Int.

setScanningIndicatorColor #

Java
void setScanningIndicatorColor(int)

On BarkoderConfig. Sets the color of the scanning indicator as Int.

setScanningIndicatorWidth #

Java
void setScanningIndicatorWidth(float)

On BarkoderConfig. Sets the width of the scanning indicator as Float.

AR mode #

resetArCache #

Java
void resetArCache()

On BarkoderView. Clears all cached barcode results from the current AR scanning session. Available only when AR mode is enabled.

arConfig #

Java
BarkoderArConfig arConfig

On BarkoderConfig. Configuration options for AR barcode detection and overlay behavior.

getArConfig #

Java
BarkoderArConfig getArConfig()

On BarkoderConfig. Retrieves the configuration options for AR barcode detection and overlay behavior.

arMode #

Java
BarkoderARMode arMode

On BarkoderArConfig. The AR behavior mode.

barcodeThumbnailOnResult #

Java
boolean barcodeThumbnailOnResult

On BarkoderArConfig. Whether barcode thumbnails are included in AR results.

continueScanningOnLimit #

Java
Boolean continueScanningOnLimit

On BarkoderArConfig. Whether scanning continues after reaching the result limit.

displayOnlyMatchedResults #

Java
boolean displayOnlyMatchedResults

On BarkoderArConfig. Whether only matched results are displayed. If false, all decoded results are displayed, including unmatched results. This option only applies when arMode is MatchFilter and a match filter is active.

doubleTapToFreezeEnabled #

Java
boolean doubleTapToFreezeEnabled

On BarkoderArConfig. Whether double-tap to freeze is enabled.

emitResultsAtSessionEndOnly #

Java
Boolean emitResultsAtSessionEndOnly

On BarkoderArConfig. Whether results are emitted only when the session ends.

getARMode #

Java
BarkoderARMode getARMode()

On BarkoderArConfig. Retrieves the current AR behavior mode.

getContinueScanningOnLimit #

Java
boolean getContinueScanningOnLimit()

On BarkoderArConfig. Checks if scanning continues after reaching the result limit.

getDisplayOnlyMatchedResults #

Java
boolean getDisplayOnlyMatchedResults()

On BarkoderArConfig. Checks whether only matched results are displayed. If false, all decoded results are displayed, including unmatched results. This option only applies when arMode is MatchFilter and a match filter is active.

getEmitResultsAtSessionEndOnly #

Java
boolean getEmitResultsAtSessionEndOnly()

On BarkoderArConfig. Checks if results are emitted only when the session ends.

getHeaderHeight #

Java
float getHeaderHeight()

On BarkoderArConfig. Gets the AR header height.

getHeaderHorizontalTextMargin #

Java
float getHeaderHorizontalTextMargin()

On BarkoderArConfig. Gets the horizontal text margin inside the header.

getHeaderMaxTextHeight #

Java
float getHeaderMaxTextHeight()

On BarkoderArConfig. Gets the maximum header text height.

getHeaderMinTextHeight #

Java
float getHeaderMinTextHeight()

On BarkoderArConfig. Gets the minimum header text height.

getHeaderShowMode #

Java
BarkoderARHeaderShowMode getHeaderShowMode()

On BarkoderArConfig. Gets when the header text (label above barcodes) is visible in AR mode.

getHeaderTextColorNonSelected #

Java
int getHeaderTextColorNonSelected()

On BarkoderArConfig. Gets the header text color when a barcode is not selected.

getHeaderTextColorSelected #

Java
int getHeaderTextColorSelected()

On BarkoderArConfig. Gets the header text color when a barcode is selected.

getHeaderTextFormat #

Java
String getHeaderTextFormat()

On BarkoderArConfig. Gets the format string used to display header text.

getHeaderVerticalTextMargin #

Java
float getHeaderVerticalTextMargin()

On BarkoderArConfig. Gets the vertical text margin inside the header.

getLocationTransitionSpeed #

Java
float getLocationTransitionSpeed()

On BarkoderArConfig. Gets the overlay transition smoothing speed.

getLocationType #

Java
BarkoderARLocationType getLocationType()

On BarkoderArConfig. Gets the AR overlay location type.

getNonSelectedLocationColor #

Java
int getNonSelectedLocationColor()

On BarkoderArConfig. Gets the color used for non-selected barcode overlays.

getNonSelectedLocationLineWidth #

Java
float getNonSelectedLocationLineWidth()

On BarkoderArConfig. Gets the line width used for non-selected barcode outlines.

getOverlayRefresh #

Java
BarkoderAROverlayRefresh getOverlayRefresh()

On BarkoderArConfig. Gets the overlay refresh mode.

getResultDisappearanceDelayMs #

Java
int getResultDisappearanceDelayMs()

On BarkoderArConfig. Gets the delay after which AR results expire and disappear from the view.

getResultLimit #

Java
int getResultLimit()

On BarkoderArConfig. Gets the maximum number of results allowed.

getReturnOnlyMatchedResults #

Java
boolean getReturnOnlyMatchedResults()

On BarkoderArConfig. Checks whether only matched results are returned. If false, all detected results are returned, while unmatched results have isMatched set to false. This option only applies when arMode is MatchFilter and a match filter is active.

getSelectedLocationColor #

Java
int getSelectedLocationColor()

On BarkoderArConfig. Gets the color used for selected barcode outlines.

getSelectedLocationLineWidth #

Java
float getSelectedLocationLineWidth()

On BarkoderArConfig. Gets the line width used for selected barcode outlines.

headerHeight #

Java
float headerHeight

On BarkoderArConfig. The AR header height.

headerHorizontalTextMargin #

Java
float headerHorizontalTextMargin

On BarkoderArConfig. The horizontal text margin inside the header.

headerMaxTextHeight #

Java
float headerMaxTextHeight

On BarkoderArConfig. The maximum header text height.

headerMinTextHeight #

Java
float headerMinTextHeight

On BarkoderArConfig. The minimum header text height.

headerShowMode #

Java
BarkoderARHeaderShowMode headerShowMode

On BarkoderArConfig. When the header text (label above barcodes) is visible in AR mode.

headerTextColorNonSelected #

Java
int headerTextColorNonSelected

On BarkoderArConfig. The header text color when a barcode is not selected.

headerTextColorSelected #

Java
int headerTextColorSelected

On BarkoderArConfig. The header text color when a barcode is selected.

headerTextFormat #

Java
String headerTextFormat

On BarkoderArConfig. The format string used to display header text.

headerVerticalTextMargin #

Java
float headerVerticalTextMargin

On BarkoderArConfig. The vertical text margin inside the header.

imageResultEnabled #

Java
boolean imageResultEnabled

On BarkoderArConfig. Whether image capturing for selected barcodes is enabled.

isBarcodeThumbnailOnResultEnabled #

Java
boolean isBarcodeThumbnailOnResultEnabled()

On BarkoderArConfig. Checks if barcode thumbnails are included in AR results.

isDoubleTapToFreezeEnabled #

Java
boolean isDoubleTapToFreezeEnabled()

On BarkoderArConfig. Checks if double-tap to freeze is enabled.

isImageResultEnabled #

Java
boolean isImageResultEnabled()

On BarkoderArConfig. Checks if image capturing for selected barcodes is enabled.

locationTransitionSpeed #

Java
float locationTransitionSpeed

On BarkoderArConfig. The overlay transition smoothing speed.

locationType #

Java
BarkoderARLocationType locationType

On BarkoderArConfig. The AR overlay location type.

nonSelectedLocationLineColor #

Java
int nonSelectedLocationLineColor

On BarkoderArConfig. The color used for non-selected barcode overlays.

nonSelectedLocationLineWidth #

Java
float nonSelectedLocationLineWidth

On BarkoderArConfig. The line width used for non-selected barcode outlines.

overlayRefresh #

Java
BarkoderAROverlayRefresh overlayRefresh

On BarkoderArConfig. The overlay refresh mode.

resetArCache #

Java
void resetArCache()

On BarkoderArConfig. Clears all cached barcode results from the current AR scanning session. Available only when AR mode is enabled.

resultDisappearanceDelayMs #

Java
int resultDisappearanceDelayMs

On BarkoderArConfig. The delay after which AR results expire and disappear from the view.

resultLimit #

Java
int resultLimit

On BarkoderArConfig. The maximum number of results allowed.

returnOnlyMatchedResults #

Java
boolean returnOnlyMatchedResults

On BarkoderArConfig. Whether only matched results are returned. If false, all detected results are returned, while unmatched results have isMatched set to false. This option only applies when arMode is MatchFilter and a match filter is active.

selectedLocationColor #

Java
int selectedLocationColor

On BarkoderArConfig. The color used for selected barcode outlines.

selectedLocationLineWidth #

Java
float selectedLocationLineWidth

On BarkoderArConfig. The line width used for selected barcode outlines.

setARModeEnabled #

Java
void setARModeEnabled(BarkoderARMode)

On BarkoderArConfig. Defines the overall AR behavior mode (InteractiveEnabled, InteractiveDisabled, NonInteractive, MatchFilter or disabled).

setBarcodeThumbnailOnResultEnabled #

Java
void setBarcodeThumbnailOnResultEnabled(boolean)

On BarkoderArConfig. Enables or disables thumbnail generation in AR results.

setContinueScanningOnLimit #

Java
void setContinueScanningOnLimit(boolean)

On BarkoderArConfig. Sets whether scanning continues after reaching the result limit.

setDisplayOnlyMatchedResults #

Java
void setDisplayOnlyMatchedResults(boolean)

On BarkoderArConfig. Controls whether only matched results are displayed. If false, all decoded results are displayed, including unmatched results. This option only applies when arMode is MatchFilter and a match filter is active.

setDoubleTapToFreezeEnabled #

Java
void setDoubleTapToFreezeEnabled(boolean)

On BarkoderArConfig. Enables or disables double-tap freeze.

setEmitResultsAtSessionEndOnly #

Java
void setEmitResultsAtSessionEndOnly(boolean)

On BarkoderArConfig. Sets whether results are emitted only at session end.

setHeaderHeight #

Java
void setHeaderHeight(float)

On BarkoderArConfig. Sets the AR header height.

setHeaderHorizontalTextMargin #

Java
void setHeaderHorizontalTextMargin(float)

On BarkoderArConfig. Sets the horizontal text margin inside the header.

setHeaderMaxTextHeight #

Java
void setHeaderMaxTextHeight(float)

On BarkoderArConfig. Sets the maximum header text height.

setHeaderMinTextHeight #

Java
void setHeaderMinTextHeight(float)

On BarkoderArConfig. Sets the minimum header text height.

setHeaderShowMode #

Java
void setHeaderShowMode(BarkoderARHeaderShowMode)

On BarkoderArConfig. Defines when the header text (label above barcodes) should be visible in AR mode.

setHeaderTextColorNonSelected #

Java
void setHeaderTextColorNonSelected(int)

On BarkoderArConfig. Sets the header text color for non-selected barcodes.

setHeaderTextColorSelected #

Java
void setHeaderTextColorSelected(int)

On BarkoderArConfig. Sets the header text color for selected barcodes.

setHeaderTextFormat #

Java
void setHeaderTextFormat(String)

On BarkoderArConfig. Sets the format string used to display header text.

setHeaderVerticalTextMargin #

Java
void setHeaderVerticalTextMargin(float)

On BarkoderArConfig. Sets the vertical text margin inside the header.

setImageResultEnabled #

Java
void setImageResultEnabled(boolean)

On BarkoderArConfig. Enables or disables image result capturing.

setLocationTransitionSpeed #

Java
void setLocationTransitionSpeed(float)

On BarkoderArConfig. Sets the overlay transition smoothing speed.

setLocationType #

Java
void setLocationType(BarkoderARLocationType)

On BarkoderArConfig. Sets the AR overlay location type.

setNonSelectedLocationColor #

Java
void setNonSelectedLocationColor(int)

On BarkoderArConfig. Sets the color used for non-selected barcode overlays.

setNonSelectedLocationLineWidth #

Java
void setNonSelectedLocationLineWidth(float)

On BarkoderArConfig. Sets the line width used for non-selected barcode outlines.

setOverlayRefresh #

Java
void setOverlayRefresh(BarkoderAROverlayRefresh)

On BarkoderArConfig. Sets the overlay refresh mode.

setResultDisappearanceDelayMs #

Java
void setResultDisappearanceDelayMs(int)

On BarkoderArConfig. Sets the disappearance delay for AR results.

setResultLimit #

Java
void setResultLimit(int)

On BarkoderArConfig. Sets the maximum number of results allowed.

setReturnOnlyMatchedResults #

Java
void setReturnOnlyMatchedResults(boolean)

On BarkoderArConfig. Controls whether only matched results are returned. If false, all detected results are returned, while unmatched results have isMatched set to false. This option only applies when arMode is MatchFilter and a match filter is active.

setSelectedLocationColor #

Java
void setSelectedLocationColor(int)

On BarkoderArConfig. Sets the color used for selected barcode outlines.

setSelectedLocationLineWidth #

Java
void setSelectedLocationLineWidth(float)

On BarkoderArConfig. Sets the line width used for selected barcode outlines.

On-screen buttons #

configureCloseButton #

Java
void configureCloseButton(boolean, float[], float, Integer, Integer, float, float, boolean, Bitmap, Runnable)

On BarkoderView. Configures the Close button used while scanning.

configureFlashButton #

Java
void configureFlashButton(boolean, float[], float, Integer, Integer, float, float, boolean, Bitmap, Bitmap)

On BarkoderView. Configures the Flash (torch) button used while scanning, including position, size, styling and custom icons.

configureZoomButton #

Java
void configureZoomButton(boolean, float[], float, Integer, Integer, float, float, boolean, Bitmap, Bitmap, float, float)

On BarkoderView. Configures the Zoom toggle button used while scanning, including position, size, styling, custom icons and zoom factors.

Settings models #

Barkoder.Config #

class, package com.barkoder

MemberKindDeclaration
AustralianPostfieldBarkoder.AustralianPostConfig AustralianPost
AztecfieldBarkoder.AztecConfig Aztec
AztecCompactfieldBarkoder.AztecCompactConfig AztecCompact
CodabarfieldBarkoder.CodabarConfig Codabar
Code11fieldBarkoder.Code11Config Code11
Code128fieldBarkoder.Code128Config Code128
Code25fieldBarkoder.Code25Config Code25
Code32fieldBarkoder.Code32Config Code32
Code39fieldBarkoder.Code39Config Code39
Code93fieldBarkoder.Code93Config Code93
ConfigconstructorConfig()
COOP25fieldBarkoder.COOP25Config COOP25
Databar14fieldBarkoder.Databar14Config Databar14
DatabarExpandedfieldBarkoder.DatabarExpandedConfig DatabarExpanded
DatabarLimitedfieldBarkoder.DatabarLimitedConfig DatabarLimited
Datalogic25fieldBarkoder.Datalogic25Config Datalogic25
DatamatrixfieldBarkoder.DatamatrixConfig Datamatrix
decodingSpeedfieldBarkoder.DecodingSpeed decodingSpeed
DotcodefieldBarkoder.DotcodeConfig Dotcode
duplicatesDelayMsfieldint duplicatesDelayMs
Ean13fieldBarkoder.Ean13Config Ean13
Ean8fieldBarkoder.Ean8Config Ean8
enableCompositefieldint enableComposite
enableMisshaped1Dfieldboolean enableMisshaped1D
enableVINRestrictionsfieldboolean enableVINRestrictions
encodingCharacterSetfieldString encodingCharacterSet
formattingTypefieldBarkoder.FormattingType formattingType
GetAvailableDecodersmethodBarkoder.DecoderType[] GetAvailableDecoders()
GetEnabledDecodersmethodBarkoder.DecoderType[] GetEnabledDecoders()
IATA25fieldBarkoder.IATA25Config IATA25
IDDocumentfieldBarkoder.IDDocumentConfig IDDocument
Interleaved25fieldBarkoder.Interleaved25Config Interleaved25
ITF14fieldBarkoder.ITF14Config ITF14
JapanesePostfieldBarkoder.JapanesePostConfig JapanesePost
KIXfieldBarkoder.KIXConfig KIX
matchFilterfieldString matchFilter
Matrix25fieldBarkoder.Matrix25Config Matrix25
MaxiCodefieldBarkoder.MaxiCodeConfig MaxiCode
maximumResultsCountfieldint maximumResultsCount
MsifieldBarkoder.MsiConfig Msi
OCRTextfieldBarkoder.OCRTextConfig OCRText
PDF417fieldBarkoder.PDF417Config PDF417
PDF417MicrofieldBarkoder.PDF417MicroConfig PDF417Micro
PlanetfieldBarkoder.PlanetConfig Planet
PostalIMBfieldBarkoder.PostalIMBConfig PostalIMB
PostnetfieldBarkoder.PostnetConfig Postnet
QRfieldBarkoder.QRConfig QR
QRMicrofieldBarkoder.QRMicroConfig QRMicro
regionOfInterestfieldBarkoder.BKRect regionOfInterest
returnOnlyMatchedResultsfieldboolean returnOnlyMatchedResults
RoyalMailfieldBarkoder.RoyalMailConfig RoyalMail
SetEnabledDecodersmethodvoid SetEnabledDecoders(Barkoder.DecoderType[])
SetRegionOfInterestmethodvoid SetRegionOfInterest(float, float, float, float)
TelepenfieldBarkoder.TelepenConfig Telepen
UpcAfieldBarkoder.UpcAConfig UpcA
UpcEfieldBarkoder.UpcEConfig UpcE
UpcE1fieldBarkoder.UpcE1Config UpcE1
upcEanDeblurfieldboolean upcEanDeblur

Barkoder.SpecificConfig #

class, package com.barkoder

MemberKindDeclaration
decoderTypefieldBarkoder.DecoderType decoderType
enabledfieldboolean enabled
expectedCountfieldint expectedCount
licensedfieldboolean licensed
maximumLengthfieldint maximumLength
minimumLengthfieldint minimumLength
setLengthRangemethodint setLengthRange(int, int)
SpecificConfigconstructorSpecificConfig()
typeNamefieldString typeName

Barkoder.AustralianPostConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
AustralianPostConfigconstructorAustralianPostConfig()

Barkoder.AztecCompactConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
AztecCompactConfigconstructorAztecCompactConfig()

Barkoder.AztecConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
AztecConfigconstructorAztecConfig()

Barkoder.CodabarConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
CodabarConfigconstructorCodabarConfig()

Barkoder.Code11Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
checksumTypefieldBarkoder.Code11ChecksumType checksumType
Code11ConfigconstructorCode11Config()

Barkoder.Code128Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
Code128ConfigconstructorCode128Config()

Barkoder.Code25Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
checksumTypefieldBarkoder.StandardChecksumType checksumType
Code25ConfigconstructorCode25Config()

Barkoder.Code32Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
Code32ConfigconstructorCode32Config()

Barkoder.Code39Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
checksumTypefieldBarkoder.Code39ChecksumType checksumType
Code39ConfigconstructorCode39Config()

Barkoder.Code93Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
Code93ConfigconstructorCode93Config()

Barkoder.COOP25Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
checksumTypefieldBarkoder.StandardChecksumType checksumType
COOP25ConfigconstructorCOOP25Config()

Barkoder.Databar14Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
Databar14ConfigconstructorDatabar14Config()

Barkoder.DatabarExpandedConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
DatabarExpandedConfigconstructorDatabarExpandedConfig()

Barkoder.DatabarLimitedConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
DatabarLimitedConfigconstructorDatabarLimitedConfig()

Barkoder.Datalogic25Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
checksumTypefieldBarkoder.StandardChecksumType checksumType
Datalogic25ConfigconstructorDatalogic25Config()

Barkoder.DatamatrixConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
DatamatrixConfigconstructorDatamatrixConfig()
dpmModefieldboolean dpmMode

Barkoder.DotcodeConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
DotcodeConfigconstructorDotcodeConfig()

Barkoder.Ean13Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
Ean13ConfigconstructorEan13Config()

Barkoder.Ean8Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
Ean8ConfigconstructorEan8Config()

Barkoder.IATA25Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
checksumTypefieldBarkoder.StandardChecksumType checksumType
IATA25ConfigconstructorIATA25Config()

Barkoder.IDDocumentConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
IDDocumentConfigconstructorIDDocumentConfig()
masterChecksumTypefieldBarkoder.StandardChecksumType masterChecksumType

Barkoder.Interleaved25Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
checksumTypefieldBarkoder.StandardChecksumType checksumType
Interleaved25ConfigconstructorInterleaved25Config()

Barkoder.ITF14Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
ITF14ConfigconstructorITF14Config()

Barkoder.JapanesePostConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
JapanesePostConfigconstructorJapanesePostConfig()

Barkoder.KIXConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
KIXConfigconstructorKIXConfig()

Barkoder.Matrix25Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
checksumTypefieldBarkoder.StandardChecksumType checksumType
Matrix25ConfigconstructorMatrix25Config()

Barkoder.MaxiCodeConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
MaxiCodeConfigconstructorMaxiCodeConfig()

Barkoder.MsiConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
checksumTypefieldBarkoder.MsiChecksumType checksumType
MsiConfigconstructorMsiConfig()

Barkoder.OCRTextConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
OCRTextConfigconstructorOCRTextConfig()

Barkoder.PDF417Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
PDF417ConfigconstructorPDF417Config()

Barkoder.PDF417MicroConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
PDF417MicroConfigconstructorPDF417MicroConfig()

Barkoder.PlanetConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
PlanetConfigconstructorPlanetConfig()

Barkoder.PostalIMBConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
PostalIMBConfigconstructorPostalIMBConfig()

Barkoder.PostnetConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
PostnetConfigconstructorPostnetConfig()

Barkoder.QRConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
dpmModefieldboolean dpmMode
multiPartMergefieldboolean multiPartMerge
QRConfigconstructorQRConfig()

Barkoder.QRMicroConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
dpmModefieldboolean dpmMode
QRMicroConfigconstructorQRMicroConfig()

Barkoder.RoyalMailConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
RoyalMailConfigconstructorRoyalMailConfig()

Barkoder.TelepenConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
TelepenConfigconstructorTelepenConfig()

Barkoder.UpcAConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
UpcAConfigconstructorUpcAConfig()

Barkoder.UpcE1Config #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
expandToUPCAfieldboolean expandToUPCA
UpcE1ConfigconstructorUpcE1Config()

Barkoder.UpcEConfig #

class, extends Barkoder.SpecificConfig, package com.barkoder

MemberKindDeclaration
expandToUPCAfieldboolean expandToUPCA
UpcEConfigconstructorUpcEConfig()

Result models #

Barkoder.BKImageDescriptor #

class, package com.barkoder

MemberKindDeclaration
BKImageDescriptorconstructorBKImageDescriptor(Bitmap, String)
imagefieldBitmap image
namefieldString name

Barkoder.BKKeyValue #

class, package com.barkoder

MemberKindDeclaration
BKKeyValueconstructorBKKeyValue()
keyfieldString key
valuefieldString value

Barkoder.BKLocation #

class, package com.barkoder

MemberKindDeclaration
BKLocationconstructorBKLocation()
locationNamefieldString locationName
pointsfieldBarkoder.BKPoint[] points

Barkoder.LicenseCheckResult #

class, package com.barkoder

MemberKindDeclaration
codefieldint code
messagefieldString message

Barkoder.Result #

class, package com.barkoder

MemberKindDeclaration
barcodeTypefieldBarkoder.BarcodeType barcodeType
barcodeTypeNamefieldString barcodeTypeName
binaryDatafieldbyte[] binaryData
characterSetfieldString characterSet
extrafieldBarkoder.BKKeyValue[] extra
imagesfieldBarkoder.BKImageDescriptor[] images
isMatchedfieldboolean isMatched
locationfieldBarkoder.BKLocation location
ResultconstructorResult()
textualDatafieldString textualData

Callbacks & events #

Barkoder.LicenseCheckListener #

interface, package com.barkoder

MemberKindDeclaration
onLicenseCheckmethodvoid onLicenseCheck(Barkoder.LicenseCheckResult)

interfaces.BarkoderConfigCallback #

interface, package com.barkoder.interfaces

MemberKindDeclaration
onFailmethodvoid onFail(BarkoderException)
onSuccessmethodvoid onSuccess()

interfaces.BarkoderPerformanceCallback #

interface, package com.barkoder.interfaces

MemberKindDeclaration
performanceReceivedmethodvoid performanceReceived(float, float)

interfaces.BarkoderPreviewFramesCallback #

interface, package com.barkoder.interfaces

MemberKindDeclaration
previewFrameReceivedmethodvoid previewFrameReceived(byte[], int, int, int, Image)

interfaces.BarkoderResultCallback #

interface, package com.barkoder.interfaces

MemberKindDeclaration
scanningFinishedmethodvoid scanningFinished(Barkoder.Result[], Bitmap[], Bitmap)

interfaces.CameraCallback #

interface, package com.barkoder.interfaces

MemberKindDeclaration
onCameraFailedToOpenmethodvoid onCameraFailedToOpen(String)
onCameraOpenedmethodvoid onCameraOpened()
onCameraReadymethodvoid onCameraReady()

interfaces.FlashAvailableCallback #

interface, package com.barkoder.interfaces

MemberKindDeclaration
onFlashAvailablemethodvoid onFlashAvailable(boolean)

interfaces.MaxZoomAvailableCallback #

interface, package com.barkoder.interfaces

MemberKindDeclaration
onMaxZoomAvailablemethodvoid onMaxZoomAvailable(float)

Enums #

Barkoder.BarcodeType #

enum, package com.barkoder

Value
Aztec
AztecCompact
QR
QRMicro
Code128
Code93
Code39
Codabar
Code11
Msi
UpcA
UpcE
UpcE1
Ean13
Ean8
PDF417
PDF417Micro
Datamatrix
Code25
Interleaved25
ITF14
IATA25
Matrix25
Datalogic25
COOP25
Code32
Telepen
Dotcode
IDDocument
IDMRZ
IDPicture
IDSignature
Databar14
DatabarLimited
DatabarExpanded
PostalIMB
Postnet
Planet
AustralianPost
RoyalMail
KIX
JapanesePost
MaxiCode
OCRText

Barkoder.Code11ChecksumType #

enum, package com.barkoder

Value
Disabled
Single
Double

Barkoder.Code39ChecksumType #

enum, package com.barkoder

Value
Disabled
Enabled

Barkoder.DecodingSpeed #

enum, package com.barkoder

Value
Fast
Normal
Slow
Rigorous

Barkoder.FormattingType #

enum, package com.barkoder

Value
Disabled
Automatic
GS1
AAMVA
SADL
BCBP

Barkoder.MsiChecksumType #

enum, package com.barkoder

Value
Disabled
Mod10
Mod11
Mod1010
Mod1110
Mod11IBM
Mod1110IBM

Barkoder.StandardChecksumType #

enum, package com.barkoder

Value
Disabled
Enabled

enums.BarkoderARHeaderShowMode #

enum, package com.barkoder.enums

Value
NEVER
ALWAYS
ONSELECTED

enums.BarkoderARLocationType #

enum, package com.barkoder.enums

Value
NONE
TIGHT
BOUNDINGBOX

enums.BarkoderARMode #

enum, package com.barkoder.enums

Value
OFF
InteractiveDisabled
InteractiveEnabled
NonInteractive
MatchFilter

enums.BarkoderCameraPosition #

enum, package com.barkoder.enums

Value
BACK
FRONT

enums.BarkoderConfigTemplate #

enum, package com.barkoder.enums

Value
ALL
PDF_OPTIMIZED
QR
RETAIL_1D
INDUSTRIAL_1D
ALL_2D
DPM
VIN
DOTCODE
ALL_1D
MRZ
GALLERY_SCAN
COMPOSITE
POSTAL_CODES
AR
MemberKindDeclaration
fromKeymethodstatic BarkoderConfigTemplate fromKey(String)
getKeymethodString getKey()

enums.BarkoderResolution #

enum, package com.barkoder.enums

Value
HD
FHD
UHD
NORMAL
HIGH
MemberKindDeclaration
getHeightmethodint getHeight()
getWidthmethodint getWidth()
toStringmethodString toString()

enums.BarkoderRoiCenterMark #

enum, package com.barkoder.enums

Value
NONE
CROSSHAIR
POINT
MemberKindDeclaration
fromStringmethodstatic BarkoderRoiCenterMark fromString(String)

overlaymanager.BarkoderAROverlayRefresh #

enum, package com.barkoder.overlaymanager

Value
SMOOTH
NORMAL