React Native barKoder SDK API Reference

API #

getBarcodeTypeLengthRange #

                ▸ getBarcodeTypeLengthRange(barcodeType): Promise<number[]>
            

Parameters #

NameType
barcodeTypeBarcodeType

getBarkoderResolution #

                ▸ getBarkoderResolution(): Promise<BarkoderResolution>
            

getCode11ChecksumType #

                ▸ getCode11ChecksumType(): Promise<Code11ChecksumType>
            

getCode39ChecksumType #

                ▸ getCode39ChecksumType(): Promise<Code39ChecksumType>
            

getDecodingSpeed #

                ▸ getDecodingSpeed(): Promise<DecodingSpeed>
            

getDuplicatesDelayMs #

                ▸ getDuplicatesDelayMs(): Promise<number>
            

getEncodingCharacterSet #

                ▸ getEncodingCharacterSet(): Promise<string>
            

getFormattingType #

                ▸ getFormattingType(): Promise&lt;FormattingType&gt;
            

getLocationLineColorHex #

                ▸ getLocationLineColorHex(): Promise<string>
            

getLocationLineWidth #

                ▸ getLocationLineWidth(): Promise<number>
            

getMaxZoomFactor #

                ▸ getMaxZoomFactor(): Promise<number>
            

getMaximumResultsCount #

                ▸ getMaximumResultsCount(): Promise<number>
            

getMsiChecksumType #

                ▸ getMsiChecksumType(): Promise<MsiChecksumType>
            

getMulticodeCachingDuration #

                ▸ getMulticodeCachingDuration(): Promise<number>
            

getMulticodeCachingEnabled #

                ▸ getMulticodeCachingEnabled(): Promise<boolean>
            

getRegionOfInterest #

                ▸ getRegionOfInterest(): Promise<number[]>
            

getRoiLineColorHex #

                ▸ getRoiLineColorHex(): Promise<string>
            

getRoiLineWidth #

                ▸ getRoiLineWidth(): Promise<number>
            

getRoiOverlayBackgroundColorHex #

                ▸ getRoiOverlayBackgroundColorHex(): Promise<string>
            

getThreadsLimit #

                ▸ getThreadsLimit(): Promise<number>
            

getThresholdBetweenDuplicatesScans #

                ▸ getThresholdBetweenDuplicatesScans(): Promise<number>
            

getVersion #

                ▸ getVersion(): Promise<string>
            

isAndroid #

                ▸ isAndroid(): boolean
            

isBarcodeThumbnailOnResultEnabled #

                ▸ isBarcodeThumbnailOnResultEnabled(): Promise<boolean>
            

isBarcodeTypeEnabled #

                ▸ isBarcodeTypeEnabled(barcodeType): Promise<boolean>
            

Parameters #

NameType
barcodeTypeBarcodeType

isBeepOnSuccessEnabled #

                ▸ isBeepOnSuccessEnabled(): Promise<boolean>
            

isCloseSessionOnResultEnabled #

                ▸ isCloseSessionOnResultEnabled(): Promise<boolean>
            

isFlashAvailable #

                ▸ isFlashAvailable(): Promise<boolean>
            

isImageResultEnabled #

                ▸ isImageResultEnabled(): Promise<boolean>
            

isIos #

                ▸ isIos(): boolean
            

isLocationInImageResultEnabled #

                ▸ isLocationInImageResultEnabled(): Promise<boolean>
            

isLocationInPreviewEnabled #

                ▸ isLocationInPreviewEnabled(): Promise<boolean>
            

isMisshaped1DEnabled #

                ▸ isMisshaped1DEnabled(): Promise<boolean>
            

isPinchToZoomEnabled #

                ▸ isPinchToZoomEnabled(): Promise<boolean>
            

isRegionOfInterestVisible #

                ▸ isRegionOfInterestVisible(): Promise<boolean>
            

isUpcEanDeblurEnabled #

                ▸ isUpcEanDeblurEnabled(): Promise<boolean>
            

isVINRestrictionsEnabled #

                ▸ isVINRestrictionsEnabled(): Promise<boolean>
            

isVibrateOnSuccessEnabled #

                ▸ isVibrateOnSuccessEnabled(): Promise<boolean>
            

onDataReturned #

                ▸ onDataReturned(event): void
            

Parameters #

NameType
eventany

pauseScanning #

                ▸ pauseScanning(): void
            

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

setBarcodeThumbnailOnResultEnabled #

                ▸ setBarcodeThumbnailOnResultEnabled(enabled): void
            

Parameters #

NameType
enabledboolean

setBarcodeTypeEnabled #

                ▸ setBarcodeTypeEnabled(barcodeType, enabled): void
            

setBarcodeTypeLengthRange #

                ▸ setBarcodeTypeLengthRange(barcodeType, min, max): Promise<boolean>
            

setBarkoderResolution #

                **setBarkoderResolution**(barkoderResolution): void

            

Sets the resolution for barcode scanning.

setBeepOnSuccessEnabled #

                **setBeepOnSuccessEnabled**(enabled): void

            

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

Parameters #

NameType
enabledboolean

setCloseSessionOnResultEnabled #

                **setCloseSessionOnResultEnabled**(enabled): void

            

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

Parameters #

NameType
enabledboolean

setCode11ChecksumType #

                ▸ setCode11ChecksumType(code11ChecksumType): void
            

setCode39ChecksumType #

                ▸ setCode39ChecksumType(code39ChecksumType): void
            

setDatamatrixDpmModeEnabled #

                ▸ setDatamatrixDpmModeEnabled(enabled): void
            

setDecodingSpeed #

                **setDecodingSpeed**(decodingSpeed): void

            

Sets the decoding speed for barcode scanning.

setDuplicatesDelayMs #

                ▸ setDuplicatesDelayMs(duplicatesDelayMs): void
            

setEnableMisshaped1DEnabled #

                ▸ setEnableMisshaped1DEnabled(enabled): void
            

setEnableVINRestrictions #

                ▸ setEnableVINRestrictions(enabled): void
            

setEncodingCharacterSet #

                **setEncodingCharacterSet**(encodingCharacterSet): void

            

Sets the encoding character set for barcode scanning

setFlashEnabled #

                ▸ **setFlashEnabled**(enabled): void

            

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

setFormattingType #

                ▸ setFormattingType(formatting): void
            

setImageResultEnabled #

                **setImageResultEnabled**(enabled): void

            

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

setLocationInImageResultEnabled #

                **setLocationInImageResultEnabled**(enabled): void

            

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

setLocationInPreviewEnabled #

                **setLocationInPreviewEnabled**(enabled): void

            

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

setLocationLineColor #

                **setLocationLineColor**(hexColor): Promise<boolean>

            

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

Parameters #

NameType
hexColorString

setLocationLineWidth #

                **setLocationLineWidth**(lineWidth): void

            

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

Parameters #

NameType
lineWidthnumber

setMaximumResultsCount #

▸ setMaximumResultsCount(maximumResultsCount): void

Parameters #

NameType
maximumResultsCountnumber

setMsiChecksumType #

                ▸ setMsiChecksumType(msiChecksumType): void
            

setMulticodeCachingDuration #

                ▸ setMulticodeCachingDuration(multicodeCachingDuration): any
            

setMulticodeCachingEnabled #

                ▸ setMulticodeCachingEnabled(multicodeCachingEnabled): any
            

setPinchToZoomEnabled #

                **setPinchToZoomEnabled**(enabled): void

            

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

setRegionOfInterest #

                **setRegionOfInterest**(left, top, width, height): Promise<boolean>

            

Defines the Region of Interest (ROI) on the camera preview for barcode scanning, specifying an area where the application focuses on detecting barcodes.

Parameters #

NameType
leftnumber
topnumber
widthnumber
heightnumber

setRegionOfInterestVisible #

                **setRegionOfInterestVisible**(visible): void

            

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

Parameters #

NameType
visibleboolean

setRoiLineColor #

                **setRoiLineColor**(hexColor): Promise<boolean>

            

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

Parameters #

NameType
hexColorString

setRoiLineWidth #

                **setRoiLineWidth**(lineWidth): void

            

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

Parameters #

NameType
lineWidthnumber

setRoiOverlayBackgroundColor #

                **setRoiOverlayBackgroundColor**(hexColor): Promise<boolean>

            

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

Parameters #

NameType
hexColorString

setThreadsLimit #

                ▸ setThreadsLimit(threadsLimit): Promise<boolean>
            

Parameters #

NameType
threadsLimitnumber

setThresholdBetweenDuplicatesScans #

                ▸ setThresholdBetweenDuplicatesScans(thresholdBetweenDuplicatesScans): void
            

Parameters #

NameType
thresholdBetweenDuplicatesScansnumber

setUpcEanDeblurEnabled #

                ▸ setUpcEanDeblurEnabled(enabled): void
            

Parameters #

NameType
enabledboolean

setVibrateOnSuccessEnabled #

                **setVibrateOnSuccessEnabled**(enabled): void

            

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

Parameters #

NameType
enabledboolean

setZoomFactor #

                **setZoomFactor**(zoomFactor): void

            

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

Parameters #

NameType
zoomFactornumber

showLogMessages #

                ▸ showLogMessages(show): void
            

Parameters #

NameType
showboolean

startCamera #

                ▸ startCamera(): void
            

startScanning #

                **startScanning**(resultsCallback): void

            

Initiates the barcode scanning process, allowing the application to detect and decode barcodes from the device's camera feed.

Parameters #

NameType
resultsCallbackResultCallback

startScanningEventEmmitter #

                ▸ startScanningEventEmmitter(): void
            

stopScanning #

                **stopScanning**(): void

            

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

Page Contents

History:

close