EMTemplate
Objective-C
@protocol EMTemplate <NSObject>
Swift
protocol EMTemplate : NSObjectProtocol
A protocol representing a DS template.
-
Returns the template id.
Declaration
Objective-C
@property (nonatomic, readonly) NSInteger templateId;Swift
var templateId: Int { get }Return Value
The template id.
-
Returns the list of primitives that this primitive contains.
Declaration
Objective-C
@property (nonatomic, copy, readonly) NSArray *primitives;Swift
var primitives: [Any]! { get }Return Value
The list of primitives.
-
Returns the domains that this template is valid for.
The
NSSetcontains instances ofNSNumber. Each such instance holds a EMDomainType enum value.Declaration
Objective-C
@property (nonatomic, copy, readonly) NSSet *domains;Swift
var domains: Set<AnyHashable>! { get }Return Value
The domains.
-
Creates a new empty transaction data holder for this template.
Declaration
Objective-C
- (id<EMDsTransactionData>)createTransactionData;Swift
func createTransactionData() -> (any EMDsTransactionData)!Return Value
The new transaction data holder.
-
Returns a textual description of this template, this is mainly intended for debug purposes.
Declaration
Objective-C
- (NSString *)description;Swift
func description() -> String!Return Value
The textual description.
EMTemplate Protocol Reference