TMBEvent
@interface TMBEvent : NSObject <TMBObjectDecodable>
A TMBEvent
represents an Event object. - see: https://tamber.com/docs/api/#event-object
-
User associated with the event.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *user;
Swift
var user: String? { get set }
-
Item associated with the event.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *item;
Swift
var item: String? { get set }
-
The behavior name.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSString *behavior;
Swift
var behavior: String? { get set }
-
Represents the amount that the behavior was performed. Defaults to 1.0 if not supplied.
Declaration
Objective-C
@property (nonatomic, nullable) NSNumber *amount;
Swift
var amount: NSNumber? { get set }
-
Indicates that the event represents a successful recommendation (ex. user ‘clicks’ an item in their recommended items list). This is used in Tamber’s analytics tools to track how recommendations impact user behavior.
Declaration
Objective-C
@property (nonatomic) BOOL hit;
Swift
var hit: Bool { get set }
-
The context(s) in which the event occurred. Useful for segmenting events data to determine the impact of interface elements and other contextual variables on user behavior. Also useful for A/B testing interface changes.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSDictionary *context;
Swift
var context: [AnyHashable : Any]? { get set }
-
Time the event occurred. Defaults to the current time if not supplied.
Declaration
Objective-C
@property (nonatomic, copy, nullable) NSDate *created;
Swift
var created: Date? { get set }