EMEmvTemplate

Objective-C

@protocol EMEmvTemplate <EMEmvDataObject>

Swift

protocol EMEmvTemplate : EMEmvDataObject

Implementation of template data object type as defined by EMV specification. Template data object contains an inner structure of other templates or primitive data objects which could be retrieved by -[EMEmvTemplate dataObject:] method.

Since

5.0
  • Provides an unmodifiable list of data objects within a range of given IDs.

    Declaration

    Objective-C

    - (NSArray<id<EMEmvDataObject>> *)
        dataObjectsWithinIdRange:(NSInteger)anIdMinInclusive
                  idMaxInclusive:(NSInteger)anIdMaxInclusive;

    Swift

    func dataObjects(withinIdRange anIdMinInclusive: Int, idMaxInclusive anIdMaxInclusive: Int) -> [any EMEmvDataObject]!

    Parameters

    anIdMinInclusive

    Minimum ID value (inclusive) for data objects to be provided.

    anIdMaxInclusive

    Maximum ID value (inclusive) for data objects to be provided.

    Return Value

    an unmodifiable list of data objects within a range of given IDs.

  • Declaration

    Objective-C

    - (id<EMEmvDataObject>)dataObject:(Byte)anId;

    Swift

    func dataObject(_ anId: UInt8) -> (any EMEmvDataObject)!

    Parameters

    anId

    ID of the data object to be retrieved from the inner list of data objects.

    Return Value

    inner EMEmvDataObject with specified ID or null if not found.