EMDsFormattingFactory
Objective-C
@interface EMDsFormattingFactory : NSObject
Swift
class EMDsFormattingFactory : NSObject
A factory for creating DS related entities.
For information on how use custom templates and primitives, please read The Programmer’s Guide.
-
Creates a DS device for the given token.
Declaration
Objective-C
- (id<EMDsFormattingDevice>)createDsDeviceWithToken:(id<EMToken>)token error:(NSError **)error;Swift
func createDsDevice(with token: (any EMToken)!) throws -> any EMDsFormattingDeviceParameters
tokenThe token.
errorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in
NULL.Return Value
The DS device.
-
Creates a DS device for the given token.
Declaration
Objective-C
- (id<EMDsFormattingDevice>)createDsDeviceWithToken:(id<EMToken>)token dsConfigurationPath:(NSString *)path error:(NSError **)error;Swift
func createDsDevice(with token: (any EMToken)!, dsConfigurationPath path: String!) throws -> any EMDsFormattingDeviceParameters
tokenThe token.
pathThe path to a custom Dynamic Signature configuration file.
errorIf an error occurs, upon return contains an NSError object that describes the problem. If you are not interested in possible errors, you may pass in
NULL.Return Value
The DS device.
-
Creates an empty EMDsTransactionData
This factory should be used in connected mode where no template is used to have a list of primitive.
Since
2.1Declaration
Objective-C
- (id<EMDsTransactionData>)createDsTransactionData;Swift
func createDsTransactionData() -> (any EMDsTransactionData)!Return Value
The EMDsTransactionData.
EMDsFormattingFactory Class Reference