UpcEanExtensionBehavior

Behavior when scanning UPC/EAN barcodes with EAN-2 or EAN-5 extensions.

Entries

Link copied to clipboard

Only barcodes with a 2-digit extension are accepted.

Link copied to clipboard

Only barcodes with a 5-digit extension are accepted.

Link copied to clipboard

Only barcodes with either a 2-digit or a 5-digit extension are accepted.

Link copied to clipboard

Always ignore the extension.

Link copied to clipboard

Return detected 2-digit extension if present, but do not require it. Ignore the 5-digit extension.

Link copied to clipboard

Return detected 5-digit extension if present, but do not require it. Ignore the 2-digit extension.

Link copied to clipboard

Return any detected extension if present, but do not require it.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Functions

Link copied to clipboard
fun toJson(): String
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.