On this page

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

.NET MAUI API reference

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

Scanning & session #

StartCamera #

C#
void StartCamera()

Starts the camera for barcode scanning.

StartScanning #

C#
void StartScanning(IBarkoderDelegate barkoderDelegate)

Starts scanning for barcodes.

ScanImage #

C#
void ScanImage(string base64Image, IBarkoderDelegate barkoderDelegate)

Scan from base64 image string.

StopScanning #

C#
void StopScanning()

Stops the barcode scanning process.

PauseScanning #

C#
void PauseScanning()

Pauses the barcode scanning process.

FreezeScanning #

C#
void FreezeScanning()

Freezes the current AR scanning session by capturing a still image from the camera feed. Use only when AR mode is enabled to temporarily freeze the view while keeping overlays visible.

UnfreezeScanning #

C#
void UnfreezeScanning()

Unfreeze Scanning the current AR scanning session by capturing a still image from the camera feed. Use only when AR mode is enabled to temporarily unfreeze the view while keeping overlays visible.

ResetARCache #

C#
void ResetARCache()

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

CaptureImage #

C#
void CaptureImage()

Captures the latest available camera frame and returns it through the IBarkoderDelegate.DidFinishScanning callback (without decoding barcodes). Must be used after starting the camera with StartScanning().

SelectVisibleBarcodes #

C#
void SelectVisibleBarcodes()

Selects all barcodes that are currently visible in AR mode.

ConfigureBarkoder #

C#
void ConfigureBarkoder(BarkoderConfig BarkoderConfig)

Configures the Barkoder functionality based on the provided configuration. Serialized to JSON with Newtonsoft.Json.

Camera #

SetFlashEnabled #

C#
void SetFlashEnabled(bool enabled)

Sets the flash (torch) on or off for barcode scanning.

SetZoomFactor #

C#
void SetZoomFactor(float zoomFactor)

Sets the zoom factor for the camera used in barcode scanning.

GetCurrentZoomFactor #

C#
float GetCurrentZoomFactor()

Returns -1 when the handler is not available.

SetCamera #

C#
void SetCamera(BarkoderCameraPosition position)

Sets the camera to be used for scanning (back/front).

GetAvailableCameras #

C#
List<Dictionary<string, string>> GetAvailableCameras()

Gets a list of available cameras on the device. Available on Mac Catalyst and Windows. Each dictionary has id and name keys. Returns an empty list when the handler is not available.

SetCameraById #

C#
void SetCameraById(string cameraId)

Sets the active camera by its device ID (obtained from GetAvailableCameras). Available on Mac Catalyst and Windows.

SetDynamicExposure #

C#
void SetDynamicExposure(int dynamicExposure)

Sets the camera's exposure dynamically based on the provided intensity, cycling through predefined compensation values.

SetCentricFocusAndExposure #

C#
void SetCentricFocusAndExposure(bool enabled)

Sets the camera to use the center of the viewfinder for focus and exposure.

SetVideoStabilization #

C#
void SetVideoStabilization(bool enabled)

Enable or disable video stabilization for smoother video capture.

SetCustomOption #

C#
void SetCustomOption(string optionName, int optionValue)

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

SetPinchToZoomEnabled #

C#
void SetPinchToZoomEnabled(bool enabled)

Enables or disables pinch-to-zoom functionality for the camera used in barcode scanning.

Barcode types #

SetBarcodeTypeEnabled #

C#
void SetBarcodeTypeEnabled(BarcodeType barcodeType, bool enabled)

Enables or disables the specified barcode type for scanning.

IsBarcodeTypeEnabled #

C#
bool IsBarcodeTypeEnabled(BarcodeType barcode)

Checks if a specific barcode type is enabled.

SetBarcodeTypeLengthRange #

C#
void SetBarcodeTypeLengthRange(BarcodeType barcodeType, int min, int max)

Sets the length range for a specified barcode type.

SetMsiChecksumType #

C#
void SetMsiChecksumType(MsiChecksumType msiChecksumType)

Sets the checksum type for MSI barcodes.

SetCode11ChecksumType #

C#
void SetCode11ChecksumType(Code11ChecksumType code11ChecksumType)

Sets the checksum type for Code 11 barcodes.

SetCode39ChecksumType #

C#
void SetCode39ChecksumType(Code39ChecksumType code39ChecksumType)

Sets the checksum type for Code 39 barcodes.

SetIdDocumentMasterChecksumEnabled #

C#
void SetIdDocumentMasterChecksumEnabled(bool enabled)

Controls whether the SDK requires the master checksum validation when scanning an ID document's MRZ (Machine Readable Zone).

SetDatamatrixDpmModeEnabled #

C#
void SetDatamatrixDpmModeEnabled(bool enabled)

Enables or disables the (DPM) mode for Datamatrix barcodes.

SetQRDpmModeEnabled #

C#
void SetQRDpmModeEnabled(bool enabled)

Sets whether Direct Part Marking (DPM) mode is enabled.

SetQRMicroDpmModeEnabled #

C#
void SetQRMicroDpmModeEnabled(bool enabled)

Sets whether Direct Part Marking (DPM) mode is enabled.

SetUpcEanDeblurEnabled #

C#
void SetUpcEanDeblurEnabled(bool enabled)

Enables or disables deblurring for UPC/EAN barcodes.

SetUPCEexpandToUPCA #

C#
void SetUPCEexpandToUPCA(bool enabled)

Sets whether the UPC-E barcodes should be expanded to UPC-A format.

SetUPCE1expandToUPCA #

C#
void SetUPCE1expandToUPCA(bool enabled)

Sets whether the UPC-E1 barcodes should be expanded to UPC-A format.

SetEnableMisshaped1DEnabled #

C#
void SetEnableMisshaped1DEnabled(bool enabled)

Enables or disables the decoding of misshaped 1D barcodes.

SetEnableVINRestrictions #

C#
void SetEnableVINRestrictions(bool enabled)

Sets whether Vehicle Identification Number (VIN) restrictions are enabled for scanning.

SetEnableComposite #

C#
void SetEnableComposite(int enableComposite)

Sets whether Composite Mode should be enabled when scanning.

SetDecodingSpeed #

C#
void SetDecodingSpeed(DecodingSpeed decodingSpeed)

Sets the decoding speed for barcode scanning.

SetFormattingType #

C#
void SetFormattingType(FormattingType formattingType)

Sets the formatting type for barcode scanning.

SetEncodingCharacterSet #

C#
void SetEncodingCharacterSet(string encodingCharacterSet)

Sets the encoding character set for barcode scanning.

SetBarkoderResolution #

C#
void SetBarkoderResolution(BarkoderResolution resolution)

Sets the resolution for barcode scanning.

SetPowerSavingMode #

C#
void SetPowerSavingMode(int powerSavingMode)

Increasing the level reduces CPU and battery usage by limiting frame processing.

SetDecoderMatchFilter #

C#
void SetDecoderMatchFilter(string matchFilter)

Specifies the barcode value(s) that the scanner should match.

SetDecoderReturnOnlyMatchedResults #

C#
void SetDecoderReturnOnlyMatchedResults(bool enabled)

Sets whether only results matching the configured matchFilter are returned.

Results #

SetCloseSessionOnResultEnabled #

C#
void SetCloseSessionOnResultEnabled(bool enabled)

Sets whether the session should be closed upon detecting a result during barcode scanning.

SetImageResultEnabled #

C#
void SetImageResultEnabled(bool enabled)

Enables or disables the display of image results during barcode scanning.

SetLocationInImageResultEnabled #

C#
void SetLocationInImageResultEnabled(bool enabled)

Enables or disables displaying the barcode location in the image result.

SetLocationInPreviewEnabled #

C#
void SetLocationInPreviewEnabled(bool enabled)

Enables or disables displaying the barcode location in the camera preview.

SetBarcodeThumbnailOnResultEnabled #

C#
void SetBarcodeThumbnailOnResultEnabled(bool enabled)

Enables or disables the display of barcode thumbnails in the scan results.

SetMaximumResultsCount #

C#
void SetMaximumResultsCount(int maximumResultsCount)

Sets the maximum number of results to be returned from barcode scanning.

SetThresholdBetweenDuplicatesScans #

C#
void SetThresholdBetweenDuplicatesScans(int thresholdBetweenDuplicatesScans)

Sets the threshold between duplicate scans in milliseconds.

SetResultDisappearanceDelayMs #

C#
void SetResultDisappearanceDelayMs(int resultDisappearanceDelayMs)

Sets the delay (in milliseconds) after which a detected AR result is considered expired and removed.

SetShowDuplicatesLocation #

C#
void SetShowDuplicatesLocation(bool enabled)

Enables or disables showing duplicate barcode locations on the preview overlay.

SetBeepOnSuccessEnabled #

C#
void SetBeepOnSuccessEnabled(bool enabled)

Enables or disables the beep sound on successful barcode scanning.

SetVibrateOnSuccessEnabled #

C#
void SetVibrateOnSuccessEnabled(bool enabled)

Enables or disables the vibration on successful barcode scanning.

Region & overlay #

SetRegionOfInterest #

C#
void SetRegionOfInterest(int left, int top, int width, int height)

Sets the region of interest (ROI) for barcode scanning within the camera preview.

SetRegionOfInterestVisible #

C#
void SetRegionOfInterestVisible(bool visible)

Sets the visibility of the region of interest (ROI) overlay for barcode scanning.

SetBarkoderRoiCenterMark #

C#
void SetBarkoderRoiCenterMark(BarkoderRoiCenterMark roiCenterMark)

Sets the visual marker displayed at the center of the scanner's Region of Interest (ROI).

SetLocationLineColor #

C#
void SetLocationLineColor(string hexColor)

Sets the color of the line indicating the barcode location in the camera preview.

SetRoiLineColor #

C#
void SetRoiLineColor(string hexColor)

Sets the color of the line indicating the region of interest (ROI) in the camera preview.

SetRoiOverlayBackgroundColor #

C#
void SetRoiOverlayBackgroundColor(string hexColor)

Sets the background color of the region of interest (ROI) overlay in the camera preview.

SetScanningIndicatorAlwaysVisibleEnabled #

C#
void SetScanningIndicatorAlwaysVisibleEnabled(bool enabled)

Sets the scanning indicator to be always shown on the camera feed.

SetScanningIndicatorColor #

C#
void SetScanningIndicatorColor(string hexColor)

Sets the color of the lines outlining the scanning indicator for barcode scanning on the camera feed.

SetScanningIndicatorAnimationMode #

C#
void SetScanningIndicatorAnimationMode(int animationMode)

Sets the animation of the scanning indicator for barcode scanning on the camera feed.

AR mode #

SetBarkoderARMode #

C#
void SetBarkoderARMode(BarkoderARMode arMode)

Sets the AR mode used for barcode scanning visualization.

SetBarkoderARHeaderShowMode #

C#
void SetBarkoderARHeaderShowMode(BarkoderARHeaderShowMode headerShowMode)

Sets the condition under which the header text is shown above the barcode.

SetBarkoderARLocationType #

C#
void SetBarkoderARLocationType(BarkoderARLocationType locationType)

Sets the style of location overlays drawn around detected barcodes.

SetBarkoderARoverlayRefresh #

C#
void SetBarkoderARoverlayRefresh(BarkoderAROverlayRefresh overlayRefresh)

Sets the refresh mode for the AR overlay on the camera preview.

SetARContinueScanningOnLimit #

C#
void SetARContinueScanningOnLimit(bool enabled)

Sets whether scanning continues when the result limit is reached (only in .interactiveDisabled mode).

SetAREmitResultsAtSessionEndOnly #

C#
void SetAREmitResultsAtSessionEndOnly(bool enabled)

Sets whether results are emitted only at AR session end (or when the limit is reached).

SetARImageResultEnabled #

C#
void SetARImageResultEnabled(bool enabled)

Enables or disables the capturing and processing of image data when a barcode is selected for AR mode.

SetARBarcodeThumbnailOnResultEnabled #

C#
void SetARBarcodeThumbnailOnResultEnabled(bool enabled)

Enables or disables the capturing and processing of thumbnail data when a barcode is selected for AR mode.

SetARResultLimit #

C#
void SetARResultLimit(int resultLimit)

Sets the maximum number of results allowed in a single AR scanning session.

SetARDoubleTapToFreezeEnabled #

C#
void SetARDoubleTapToFreezeEnabled(bool enabled)

Enables or disables the ability to freeze/unfreeze scanning via double-tap gesture in AR mode.

SetARReturnOnlyMatchedResults #

C#
void SetARReturnOnlyMatchedResults(bool enabled)

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 the AR mode is MatchFilter and a match filter is active.

SetARDisplayOnlyMatchedResults #

C#
void SetARDisplayOnlyMatchedResults(bool enabled)

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

SetARSelectedLocationLineColor #

C#
void SetARSelectedLocationLineColor(string hexColor)

Sets the color used for drawing the overlay around selected barcodes in AR mode.

SetARNonSelectedLocationLineColor #

C#
void SetARNonSelectedLocationLineColor(string hexColor)

Sets the color used for drawing the overlay around non selected barcodes in AR mode.

SetARSelectedHeaderTextColor #

C#
void SetARSelectedHeaderTextColor(string hexColor)

Sets the text color of the header when the barcode is in a selected state.

SetARNonSelectedHeaderTextColor #

C#
void SetARNonSelectedHeaderTextColor(string hexColor)

Sets the text color of the header when the barcode is in a non selected state.

SetARSelectedLocationLineWidth #

C#
void SetARSelectedLocationLineWidth(double locationWidth)

Sets the width used for drawing the overlay around selected barcodes in AR mode.

SetARNonSelectedLocationLineWidth #

C#
void SetARNonSelectedLocationLineWidth(double locationWidth)

Sets the width used for drawing the overlay around non selected barcodes in AR mode.

SetARLocationTransitionSpeed #

C#
void SetARLocationTransitionSpeed(double transitionSpeed)

Sets the speed at which barcode location overlays transition positions.

SetARHeaderHeight #

C#
void SetARHeaderHeight(double headerHeight)

Sets the height of the header text label shown above the barcode in AR mode.

SetARHeaderMaxTextHeight #

C#
void SetARHeaderMaxTextHeight(double headerHeightMaxText)

Sets the maximum text height used for rendering AR header text.

SetARHeaderMinTextHeight #

C#
void SetARHeaderMinTextHeight(double headerHeightMinText)

Sets the minimum text height used for rendering AR header text.

SetARHeaderVerticalTextMargin #

C#
void SetARHeaderVerticalTextMargin(double verticalTextMargin)

Sets the vertical margin applied to the header text in AR mode, creating equal padding on both sides.

SetARHeaderHorizontalTextMargin #

C#
void SetARHeaderHorizontalTextMargin(double horizontalTextMargin)

Sets the horizontal margin applied to the header text in AR mode, creating equal padding on both sides.

SetARHeaderTextFormat #

C#
void SetARHeaderTextFormat(string headerTextFormat)

Sets the format string for the AR header text above each barcode.

SetHeaderTextFormatAR #

C#
void SetHeaderTextFormatAR(string headerTextformat)

Same effect as SetARHeaderTextFormat.

On-screen buttons #

ConfigureCloseButton #

C#
void ConfigureCloseButton(bool visible, float[] position, float iconSize, string? tintColor, string? backgroundColor, float cornerRadius, float padding, bool useCustomIcon, string customIconBase64, Action? onClose)

Configures the Close button used while scanning.

ConfigureFlashButton #

C#
void ConfigureFlashButton(bool visible, float[] position, float iconSize, string? tintColor, string? backgroundColor, float cornerRadius, float padding, bool useCustomIcon, string? customIconFlashOnBase64, string? customIconFlashOffBase64)

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

ConfigureZoomButton #

C#
void ConfigureZoomButton(bool visible, float[] position, float iconSize, string? tintColor, string? backgroundColor, float cornerRadius, float padding, bool useCustomIcon, string? customIconZoomedInBase64, string? customIconZoomedOutBase64, float zoomedInFactor, float zoomedOutFactor)

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

BarkoderView properties #

Bindable properties of BarkoderView (Plugin.Maui.Barkoder.Controls) for reading the current state, for example BKDView.Version. Change the settings with the methods above.

MemberDeclarationDescription
Versionstring { get; set; }Retrieves the version of the Barkoder SDK (the plugin's version).
LibVersionstring { get; set; }Retrieves the version of the Barkoder library.
DeviceIdstring { get; set; }Retrieves the Device ID.
LicenseKeystring { get; set; }Your license key; set it in XAML with barkoder:LicenseKey="...".
RegionOfInterestVisiblebool { get; set; }Whether the region of interest (ROI) is visible. Set it with SetRegionOfInterestVisible.
IsFlashAvailablebool { get; set; }Checks whether the device has a flash (torch) for illumination during barcode scanning.
MaxZoomFactordouble { get; set; }Retrieves the maximum available zoom factor for the device's camera.
LocationLineColorHexstring { get; set; }The hexadecimal color code of the lines that show the location of detected barcodes. Set it with SetLocationLineColor.
RoiLineColorHexstring { get; set; }The hexadecimal color code of the Region of Interest (ROI) lines on the camera preview. Set it with SetRoiLineColor.
RoiOverlayBackgroundColorHexstring { get; set; }The hexadecimal color code of the overlay outside the Region of Interest (ROI). Set it with SetRoiOverlayBackgroundColor.
EncodingCharacterSetstring { get; set; }The character set used for encoding barcode data. Set it with SetEncodingCharacterSet.
ARHeaderTextFormatstring { get; set; }The value SetARHeaderTextFormat sets.
LocationLineWidthdouble { get; set; }The width of the lines that show the location of detected barcodes on the camera feed.
ARSelectedLocationLineWidthdouble { get; set; }The value SetARSelectedLocationLineWidth sets.
ARNonSelectedLocationLineWidthdouble { get; set; }The value SetARNonSelectedLocationLineWidth sets.
ARLocationTransitionSpeeddouble { get; set; }The value SetARLocationTransitionSpeed sets.
RoiLineWidthdouble { get; set; }The width of the lines outlining the Region of Interest (ROI) on the camera preview.
ImageResultEnabledbool { get; set; }Whether image result is enabled. Set it with SetImageResultEnabled.
ARImageResultEnabledbool { get; set; }The value SetARImageResultEnabled sets.
LocationInImageResultEnabledbool { get; set; }Whether location in image result is enabled. Set it with SetLocationInImageResultEnabled.
LocationInPreviewEnabledbool { get; set; }Checks if location in preview is enabled. Set it with SetLocationInPreviewEnabled.
PinchToZoomEnabledbool { get; set; }Whether pinch to zoom is enabled. Set it with SetPinchToZoomEnabled.
BeepOnSuccessEnabledbool { get; set; }Whether a beep sound is played on successful barcode scanning. Set it with SetBeepOnSuccessEnabled.
VibrateOnSuccessEnabledbool { get; set; }Whether vibration is enabled on successful barcode scanning. Set it with SetVibrateOnSuccessEnabled.
CloseSessionOnResultEnabledbool { get; set; }Whether the session is closed upon detecting a result during barcode scanning. Set it with SetCloseSessionOnResultEnabled.
BarkoderResolutionBarkoderResolution { get; set; }The resolution for barcode scanning. Set it with SetBarkoderResolution.
DecodingSpeedDecodingSpeed { get; set; }The decoding speed for barcode scanning. Set it with SetDecodingSpeed.
FormattingTypeFormattingType { get; set; }The formatting type used for presenting decoded barcode data. Set it with SetFormattingType.
MsiChecksumTypeMsiChecksumType { get; set; }The MSI checksum type. Set it with SetMsiChecksumType.
Code11ChecksumTypeCode11ChecksumType { get; set; }The Code 11 checksum type. Set it with SetCode11ChecksumType.
Code39ChecksumTypeCode39ChecksumType { get; set; }The Code 39 checksum type. Set it with SetCode39ChecksumType.
ARContinueScanningOnLimitbool { get; set; }The value SetARContinueScanningOnLimit sets.
AREmitResultsAtSessionEndOnlybool { get; set; }The value SetAREmitResultsAtSessionEndOnly sets.
DatamatrixDpmModeEnabledbool { get; set; }Whether Direct Part Marking (DPM) mode is enabled for Datamatrix barcodes. Set it with SetDatamatrixDpmModeEnabled.
IsIdDocumentMasterChecksumEnabledbool { get; set; }The value SetIdDocumentMasterChecksumEnabled sets.
IsDatamatrixDpmModeEnabledbool { get; set; }The value SetDatamatrixDpmModeEnabled sets.
UpcEanDeblurEnabledbool { get; set; }Whether deblurring is enabled for UPC/EAN barcodes. Set it with SetUpcEanDeblurEnabled.
BarcodeThumbnailOnResultEnabledbool { get; set; }Checks if the barcode thumbnail on result is enabled. Set it with SetBarcodeThumbnailOnResultEnabled.
ARBarcodeThumbnailOnResultEnabledbool { get; set; }The value SetARBarcodeThumbnailOnResultEnabled sets.
MaximumResultsCountint { get; set; }Retrieves the maximum number of results to be returned from barcode scanning at once. Set it with SetMaximumResultsCount.
ARResultLimitint { get; set; }The value SetARResultLimit sets.
ARHeaderHeightdouble { get; set; }The value SetARHeaderHeight sets.
ARHeaderMaxTextHeightdouble { get; set; }The value SetARHeaderMaxTextHeight sets.
ARHeaderMinTextHeightdouble { get; set; }The value SetARHeaderMinTextHeight sets.
VINRestrictionsEnabledbool { get; set; }Checks if VIN restrictions are enabled. Set it with SetEnableVINRestrictions.
ARDoubleTapToFreezeEnabledbool { get; set; }The value SetARDoubleTapToFreezeEnabled sets.
ARReturnOnlyMatchedResultsbool { get; set; }The value SetARReturnOnlyMatchedResults sets.
ARDisplayOnlyMatchedResultsbool { get; set; }The value SetARDisplayOnlyMatchedResults sets.
ThresholdBetweenDuplicatesScansint { get; set; }Retrieves the threshold between duplicate scans. Set it with SetThresholdBetweenDuplicatesScans.
PowerSavingModeint { get; set; }The value SetPowerSavingMode sets.
RegionOfInterest(int, int, int, int) { get; set; }The region of interest (ROI). Set it with SetRegionOfInterest.

Settings models #

Barkoder.BarkoderConfig #

class

MemberType
locationLineColorlong
locationLineWidthint
roiLineColorlong
roiLineWidthint
roiOverlayBackgroundColorlong
closeSessionOnResultEnabledbool
imageResultEnabledbool
locationInImageResultEnabledbool
locationInPreviewEnabledbool
pinchToZoomEnabledbool
regionOfInterestVisiblebool
beepOnSuccessEnabledbool
vibrateOnSuccessEnabledbool
decoderDekoderConfig

Barkoder.GeneralSettings #

class

MemberJSON nameType
ThreadsLimitmaxThreadsint
DecodingSpeeddecodingSpeedDecodingSpeed
RoiXroi_xint
RoiYroi_yint
RoiWidthroi_wint
RoiHeightroi_hint
RoiCenterMarkroiCenterMarkBarkoderRoiCenterMark
FormattingTypeformattingTypeFormattingType
EncodingCharacterSetencodingCharacterSetstring
UpcEanDeblurupcEanDeblurbool
EnableMisshaped1DenableMisshaped1Dbool

Barkoder.BarcodeConfig and subclasses #

ClassExtendsMembers
BarcodeConfigbool enabled
BarcodeConfigWithLengthBarcodeConfigint minLength, int maxLength
Code39BarcodeConfigBarcodeConfigWithLengthCode39ChecksumType checksum
Code11BarcodeConfigBarcodeConfigWithLengthCode11ChecksumType checksum
MSIBarcodeConfigBarcodeConfigWithLengthMsiChecksumType checksum
DatamatrixBarcodeConfigBarcodeConfigWithLengthint? dpmMode (a constructor parameter only)

Constructors take (bool? enabled, int? minLength, int? maxLenght, ...); the maxLenght parameter name is misspelled in the source.

Barkoder.DekoderConfig #

class

MemberJSON nameType
aztecAztecBarcodeConfig
aztecCompactAztec CompactBarcodeConfig
qrQRDatamatrixBarcodeConfig
qrMicroQR MicroDatamatrixBarcodeConfig
code128Code 128BarcodeConfigWithLength
code93Code 93BarcodeConfigWithLength
code39Code 39Code39BarcodeConfig
codabarCodabarBarcodeConfigWithLength
code11Code 11Code11BarcodeConfig
msiMSIMSIBarcodeConfig
upcAUpc-ABarcodeConfig
upcEUpc-EBarcodeConfig
upcE1Upc-E1BarcodeConfig
ean13Ean-13BarcodeConfig
ean8Ean-8BarcodeConfig
pdf417PDF 417BarcodeConfig
pdf417MicroPDF 417 MicroBarcodeConfig
datamatrixDatamatrixDatamatrixBarcodeConfig
code25Code 25BarcodeConfig
interleaved25Interleaved 2 of 5BarcodeConfig
itf14ITF 14BarcodeConfig
iata25IATA 25BarcodeConfig
matrix25Matrix 25BarcodeConfig
datalogic25Datalogic 25BarcodeConfig
coop25COOP 25BarcodeConfig
code32Code 32BarcodeConfig
telepenTelepenBarcodeConfig
dotcodeDotcodeBarcodeConfig
idDocumentID DocumentBarcodeConfig
databar14Databar 14BarcodeConfig
databarLimitedDatabar LimitedBarcodeConfig
databarExpandedDatabar ExpandedBarcodeConfig
postalIMBPostal IMBBarcodeConfig
postnetPostnetBarcodeConfig
planetPlanetBarcodeConfig
australianPostAustralian PostBarcodeConfig
royalMailRoyal MailBarcodeConfig
kixKIXBarcodeConfig
japanesePostJapanese PostBarcodeConfig
maxicodeMaxiCodeBarcodeConfig
ocrTextOCR TextBarcodeConfig
generalgeneralGeneralSettings

Result models #

Plugin.Maui.Barkoder.Controls.BarcodeTypeEventArgs #

class, extends EventArgs

MemberKindDeclaration
BarcodeTypeEventArgsconstructorBarcodeTypeEventArgs(BarcodeType barcodeType, bool enabled)
BarcodeTypepropertyBarcodeType { get; }
Enabledpropertybool { get; }

Plugin.Maui.Barkoder.Controls.BarcodeRangeEventArg #

class, extends EventArgs

MemberKindDeclaration
BarcodeRangeEventArgconstructorBarcodeRangeEventArg(BarcodeType barcodeType, int min, int max)
BarcodeTypepropertyBarcodeType { get; }
Minpropertyint { get; }
Maxpropertyint { get; }

Plugin.Maui.Barkoder.Interfaces.IBarkoderDelegate #

interface. Both methods have default (empty / forwarding) implementations, so implement the one you need.

MemberKindDeclaration
DidFinishScanningmethodvoid DidFinishScanning(BarcodeResult[] result, ImageSource originalImageSource)
DidFinishScanningmethodvoid DidFinishScanning(BarcodeResult[] result, ImageSource[] thumbnails, ImageSource originalImageSource)

Call default interface members through the interface type, or implement the method explicitly on your class.

Plugin.Maui.Barkoder.Handlers.BarcodeResult #

class

MemberKindDeclaration
BarcodeResultconstructorBarcodeResult(string textualData, string barcodeTypeName, Dictionary<string, object>? extra, string characterSet, List<ImageData> mrzImages, BarcodeLocation location, string binaryDataAsBase64, string sadlImageAsBase64, bool isMatched = false)
TextualDatapropertystring { get; set; }
BarcodeTypeNamepropertystring { get; set; }
ExtrapropertyDictionary<string, object>? { get; set; }
CharacterSetpropertystring { get; set; }
MrzImagespropertyList<ImageData> { get; set; }
LocationpropertyBarcodeLocation { get; set; }
BinaryDataAsBase64propertystring { get; set; }
SadlImageAsBase64propertystring { get; set; }
IsMatchedpropertybool { get; set; }

Plugin.Maui.Barkoder.Handlers.ImageData #

class

MemberKindDeclaration
ImageDataconstructorImageData(string name, ImageSource image)
Namepropertystring { get; set; }
ImagepropertyImageSource { get; set; }

Plugin.Maui.Barkoder.Handlers.BarcodeLocation #

class

MemberKindDeclaration
PointspropertyList<BarcodePoint> { get; set; }
LocationNamepropertystring { get; set; }

Plugin.Maui.Barkoder.Handlers.BarcodePoint #

class

MemberKindDeclaration
BarcodePointconstructorBarcodePoint(float x, float y)
Xpropertyfloat { get; set; }
Ypropertyfloat { get; set; }

Plugin.Maui.Barkoder.Common.BarkoderGlobal #

static partial class

MemberKindDeclaration
SetCustomOptionGlobalmethodstatic void SetCustomOptionGlobal(string option, int value)

Plugin.Maui.Barkoder.Controls.BarkoderViewHandler #

partial class, extends ViewHandler<BarkoderView, ...> (per-platform native view). MAUI infrastructure; app code does not call it directly except through BarkoderView.

MemberKindDeclaration
BarkoderViewHandlerconstructorBarkoderViewHandler()
PropertyMapperpropertystatic IPropertyMapper<BarkoderView, BarkoderViewHandler>
CommandMapperpropertystatic CommandMapper<BarkoderView, BarkoderViewHandler>
GetCurrentZoomFactormethodfloat GetCurrentZoomFactor()
GetAvailableCamerasmethodList<Dictionary<string, string>> GetAvailableCameras()

Enums #

BarcodeType #

Value=
Aztec0
AztecCompact1
QR2
QRMicro3
Code1284
Code935
Code396
Codabar7
Code118
Msi9
UpcA10
UpcE11
UpcE112
Ean1313
Ean814
PDF41715
PDF417Micro16
Datamatrix17
Code2518
Interleaved2519
Itf1420
Uata2521
Matrix2522
Datalogic2523
Coop2524
Code3225
Telepen26
Dotcode27
IDDocument28
Databar1429
DatabarLimited30
DatabarExpanded31
PostalIMB32
Postnet33
Planet34
AustralianPost35
RoyalMail36
KIX37
JapanesePost38
Maxicode39
OCRText40

Uata25 is the spelling in the source (the NativeScript plugin calls it IATA25).

DecoderType #

Same 41 values, same order and integers as BarcodeType. BarkoderView methods take BarcodeType; DecoderType is not referenced by any BarkoderView member.

BarkoderResolution #

Value=
HD0
FHD1
UHD2

BarkoderARMode #

Value=
OFF0
InteractiveDisabled1
InteractiveEnabled2
NonInteractive3
MatchFilter4

BarkoderARHeaderShowMode #

Value=
NEVER0
ALWAYS1
ONSELECTED2

BarkoderARLocationType #

Value=
NONE0
TIGHT1
BOUNDINGBOX2

BarkoderAROverlayRefresh #

Value=
SMOOTH0
NORMAL1

BarkoderCameraPosition #

Value=
BACK0
FRONT1

BarkoderRoiCenterMark #

Value=
NONE0
POINT1
CROSSHAIR2

The NativeScript plugin orders these NONE, CROSSHAIR, POINT; the integers differ.

DecodingSpeed #

Value=
Fast0
Normal1
Slow2
Rigorous3

FormattingType #

Value=
Disabled0
Automatic1
GS12
AAMVA3
SADL4
BCBP5

Code11ChecksumType #

Value=
Disabled0
Single1
Double2

Code39ChecksumType #

Value=
Disabled0
Enabled1

MsiChecksumType #

Value=
Disabled0
Mod101
Mod112
Mod10103
Mod11104
Mod11IBM5
Mod1110IBM6