init(payload:isCompact:layerCount:dataCodewordCount:)
Initializes an Aztec code descriptor for the given payload and parameters.
Declaration
init?(payload errorCorrectedPayload: Data, isCompact: Bool, layerCount: Int, dataCodewordCount: Int)Parameters
- errorCorrectedPayload:
The data to encode in the Aztec code symbol.
- isCompact:
A Boolean indicating whether or not the Aztec code is compact.
- layerCount:
The number of layers in the Aztec code, from 1 to 32.
- dataCodewordCount:
The number of codewords in the Aztec code, from 1 to 2048.
Return Value
An initialized CIAztecCodeDescriptor instance or nil if the parameters are invalid