SFMCEvent
Objective-C
@protocol SFMCEvent <NSObject>
Swift
protocol SFMCEventProtocol : NSObjectProtocol
Required protocol for creating event objects to be passed into the SDK
-
Event Key
Declaration
Objective-C
- (nonnull NSString *)key;
Swift
func key() -> String
-
Event Id
Declaration
Objective-C
- (nullable NSString *)eventId;
Swift
func eventId() -> String?
-
Key value pair of data to be passed
Declaration
Objective-C
- (nullable NSDictionary<NSString *, id> *)parameters;
Swift
func parameters() -> [String : Any]?