//qrcode-kotlin/io.github.g0dkar.qrcode.internals/QRCodeRegion

QRCodeRegion

[common]
enum QRCodeRegion : Enum<QRCodeRegion>

Represents which part/region of a given square type a particular, single square is.

For example, a position probe is visually composed of multiple squares that form a bigger one.

For example, this is what a position probe normally looks like (squares spaced for ease of understanding):

A■■■■B
 ■■ 
 ■■ 
C■■■■D

The positions marked with A, B, C and D would be regions TOP_LEFT_CORNER, TOP_RIGHT_CORNER, BOTTOM_LEFT_CORNER and BOTTOM_RIGHT_CORNER respectively.

Entries

   
TOP_LEFT_CORNER [common]
TOP_LEFT_CORNER
TOP_RIGHT_CORNER [common]
TOP_RIGHT_CORNER
TOP_MID [common]
TOP_MID
LEFT_MID [common]
LEFT_MID
RIGHT_MID [common]
RIGHT_MID
CENTER [common]
CENTER
BOTTOM_LEFT_CORNER [common]
BOTTOM_LEFT_CORNER
BOTTOM_RIGHT_CORNER [common]
BOTTOM_RIGHT_CORNER
BOTTOM_MID [common]
BOTTOM_MID
MARGIN [common]
MARGIN
UNKNOWN [common]
UNKNOWN

Properties

Name Summary
entries [common]
val entries: EnumEntries<QRCodeRegion>
Returns a representation of an immutable list of all enum entries, in the order they’re declared.
name [common]
val name: String
ordinal [common]
val ordinal: Int

Functions

Name Summary
valueOf [common]
fun valueOf(value: String): QRCodeRegion
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.)
values [common]
fun values(): Array<QRCodeRegion>
Returns an array containing the constants of this enum type, in the order they’re declared.