Inherits from BCKMSICodeCharacter : BCKCodeCharacter : NSObject
Declared in BCKMSIContentCodeCharacter.h

Overview

Specialized class of BCKMSICodeCharacter used for generating MSI codes and representing content characters.

Properties

character

The character encoded by the content code character.

@property (nonatomic, readonly) NSString *character

Declared In

BCKMSIContentCodeCharacter.h

isCheckDigit

Whether the content code character is a check digit character.

@property (nonatomic, readonly, getter=isCheckDigit) BOOL isCheckDigit

Declared In

BCKMSIContentCodeCharacter.h

Instance Methods

characterValue

Return a content code character’s value. Only supports numeric characters.

- (NSUInteger)characterValue

Return Value

The content code character’s value.

Declared In

BCKMSIContentCodeCharacter.h

initWithCharacter:

Initialise a content code character using a character. Only supports numeric characters.

- (instancetype)initWithCharacter:(NSString *)character

Parameters

character

The character.

Return Value

The content code character for the character.

Declared In

BCKMSIContentCodeCharacter.h

initWithCharacterValue:isCheckDigit:

Initialise a content code character using its character value.

- (instancetype)initWithCharacterValue:(NSUInteger)characterValue isCheckDigit:(BOOL)isCheckDigit

Parameters

characterValue

The character value to encode.

isCheckDigit

Whether the character is a check digit (YES) or a regular check digit (NO).

Return Value

The content code character for the character value.

Declared In

BCKMSIContentCodeCharacter.h