Flurry iOS 4.2.3
 All Classes Functions Pages
Flurry.h
1 //
2 // Flurry.h
3 // Flurry iOS Analytics Agent
4 //
5 // Copyright 2009-2012 Flurry, Inc. All rights reserved.
6 //
7 // Methods in this header file are for use with Flurry Analytics
8 
9 #import <UIKit/UIKit.h>
10 
32 typedef enum {
33  FlurryLogLevelNone = 0, //No output
34  FlurryLogLevelCriticalOnly, //Default, outputs only crytical log events
35  FlurryLogLevelDebug, //Debug level, outputs crytical and main log events
36  FlurryLogLevelAll //Highest level, outputs all log events
37 } FlurryLogLevel;
38 
39 
40 @interface Flurry : NSObject {
41 }
42 
47 
61 + (void)setAppVersion:(NSString *)version;
62 
80 + (NSString *)getFlurryAgentVersion;
81 
98 + (void)setShowErrorInLogEnabled:(BOOL)value;
99 
114 + (void)setDebugLogEnabled:(BOOL)value;
115 
128 + (void)setLogLevel:(FlurryLogLevel)value;
129 
142 + (void)setSessionContinueSeconds:(int)seconds;
143 
155 + (void)setSecureTransportEnabled:(BOOL)value;
156 
168 + (void)setCrashReportingEnabled:(BOOL)value;
169 
171 
202 + (void)startSession:(NSString *)apiKey;
203 
204 
234 + (void) startSession:(NSString *)apiKey withOptions:(id)options;
235 
236 
259 + (void)pauseBackgroundSession;
260 
261 
266 
301 + (void)logEvent:(NSString *)eventName;
302 
345 + (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters;
346 
375 + (void)logError:(NSString *)errorID message:(NSString *)message exception:(NSException *)exception;
376 
396 + (void)logError:(NSString *)errorID message:(NSString *)message error:(NSError *)error;
397 
435 + (void)logEvent:(NSString *)eventName timed:(BOOL)timed;
436 
482 + (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters timed:(BOOL)timed;
483 
529 + (void)endTimedEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters; // non-nil parameters will update the parameters
530 
532 
533 
538 
562 + (void)logAllPageViews:(id)target;
563 
582 + (void)logPageView;
583 
585 
590 
600 + (void)setUserID:(NSString *)userID;
601 
615 + (void)setAge:(int)age;
616 
631 + (void)setGender:(NSString *)gender; // user's gender m or f
632 
634 
673 + (void)setLatitude:(double)latitude longitude:(double)longitude horizontalAccuracy:(float)horizontalAccuracy verticalAccuracy:(float)verticalAccuracy;
674 
676 
681 
695 + (void)setSessionReportsOnCloseEnabled:(BOOL)sendSessionReportsOnClose;
696 
706 + (void)setSessionReportsOnPauseEnabled:(BOOL)setSessionReportsOnPauseEnabled;
707 
718 + (void)setBackgroundSessionEnabled:(BOOL)setBackgroundSessionEnabled;
719 
729 + (void)setEventLoggingEnabled:(BOOL)value;
730 
739 + (void)setPushToken:(NSString *)pushToken;
740 
741 
743 
744 @end