MaggioAnalytics
Objective-C
@protocol MaggioAnalytics <NSObject>
-(void) startSession;
-(void) resume;
-(void) close;
/// Update the random screen identifier associated with future analytics events.
-(void) updateScreenId;
/// Update analytics data for use as `previous_analytics_data`. When you call this,
/// `previous_analytics_data` will be set to the value provided by the *previous*
/// call to this method.
-(void) updateCurrentScreenAnalyticsData:(NSDictionary *)analyticsData;
-(void) addEvent:(NSString *)event;
-(void) addEvent:(NSString *)event attributes:(NSDictionary *)attributes;
-(void) addEvent:(NSString *)event
attributes:(NSDictionary *)attributes
forceBackground:(BOOL)forceBackground;
-(void) addContextAttributeValue:(id)value forKey:(NSString *)key; //!< Add values to be present in every event
-(void) removeContextAttribute:(NSString *)key;
-(void) setGlobalAttributes:(NSDictionary *)attributes; //!< Values typically gotten from an external source to be present in every event
-(NSDictionary *) contextAttributes; //!< Values to be present in every event, doens't include globalAttributes
@end
Swift
protocol MaggioAnalytics : NSObjectProtocol
Undocumented
-
Undocumented
Declaration
Objective-C
-(void) startSession;
Swift
func startSession()
-
Undocumented
Declaration
Objective-C
-(void) resume;
Swift
func resume()
-
Undocumented
Declaration
Objective-C
-(void) close;
Swift
func close()
-
Update the random screen identifier associated with future analytics events.
Declaration
Objective-C
- (void)updateScreenId;
Swift
func updateScreenId()
-
Update analytics data for use as
previous_analytics_data
. When you call this,previous_analytics_data
will be set to the value provided by the previous call to this method.Declaration
Objective-C
- (void)updateCurrentScreenAnalyticsData:(nonnull NSDictionary *)analyticsData;
Swift
func updateCurrentScreenAnalyticsData(_ analyticsData: [AnyHashable : Any])
-
Undocumented
Declaration
Objective-C
-(void) addEvent:(NSString *)event;
Swift
func addEvent(_ event: String)
-
Undocumented
Declaration
Objective-C
-(void) addEvent:(NSString *)event attributes:(NSDictionary *)attributes;
Swift
func addEvent(_ event: String, attributes: [AnyHashable : Any] = [:])
-
Undocumented
Declaration
Objective-C
-(void) addEvent:(NSString *)event attributes:(NSDictionary *)attributes forceBackground:(BOOL)forceBackground;
Swift
func addEvent(_ event: String, attributes: [AnyHashable : Any] = [:], forceBackground: Bool)
-
Undocumented
Declaration
Objective-C
- (void)addContextAttributeValue:(nonnull id)value forKey:(nonnull NSString *)key;
Swift
func addContextAttributeValue(_ value: Any, forKey key: String)
-
Undocumented
Declaration
Objective-C
-(void) removeContextAttribute:(NSString *)key;
Swift
func removeContextAttribute(_ key: String)
-
Undocumented
Declaration
Objective-C
- (void)setGlobalAttributes:(nonnull NSDictionary *)attributes;
Swift
func setGlobalAttributes(_ attributes: [AnyHashable : Any])
-
Undocumented
Declaration
Objective-C
- (nonnull NSDictionary *)contextAttributes;
Swift
func contextAttributes() -> [AnyHashable : Any]