SBSDKNFCDatagroup
@interface SBSDKNFCDatagroup : NSObject
Data on passports NFC chips are chunked in groups. Each group has a specific category and contains a number of elements, each making up a key-value pair. Groups have individual security levels. We are only allowed to extract data groups 1 and 2.
This class is an abstract base class for one data group of a passports NFC chip.
-
The type of the data group.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) SBSDKNFCDatagroupType *type;
Swift
var type: String? { get }
-
Declaration
Objective-C
- (NSUInteger)numberOfElements;
Swift
func numberOfElements() -> UInt
Return Value
The number of elements parsed from the passports data group.
-
Elements of data groups are stored in a map/dictionary. This function returns the key of the key-value pair at the given index.
Declaration
Objective-C
- (nullable NSString *)keyAtIndex:(NSUInteger)index;
Swift
func key(at index: UInt) -> String?
Parameters
index
The index of the entry.
Return Value
The key of the element in the passports data group.
-
Elements of data groups are stored in a map/dictionary. This function returns the value of the key-value pair at the given index.
Declaration
Objective-C
- (nullable id)valueAtIndex:(NSUInteger)index;
Swift
func value(at index: UInt) -> Any?
Parameters
index
The index of the entry.
Return Value
The value of the element in the passports data group.