Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Revert 64881d2^..HEAD

  • Loading branch information...
commit 10c107819b847a7247e708901d1ae7f5aca431e1 1 parent 64881d2
drewburchfield authored
90 FlurryAnalytics.h
... ... @@ -0,0 +1,90 @@
  1 +//
  2 +// FlurryAnalytics.h
  3 +// Flurry iOS Analytics Agent
  4 +//
  5 +// Copyright 2009-2011 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 +
  11 +/*!
  12 + * \brief Provides all available methods for defining and reporting Analytics from use
  13 + * of your app.
  14 + *
  15 + * Set of methods that allow developers to capture detailed, aggregate information
  16 + * regarding the use of their app by end users.
  17 + * \author 2009 - 2011 Flurry, Inc. All Rights Reserved.
  18 + */
  19 +
  20 +/*!
  21 + * @class FlurryAnalytics
  22 + * @abstract Provides all available methods for defining and reporting Analytics from use
  23 + * of your app.
  24 + * @discussion Set of methods that allow developers to capture detailed, aggregate information
  25 + * regarding the use of their app by end users.
  26 + * @helps This class provides methods necessary for correct function of FlurryAppCircle.h.
  27 + * For information on how to use Flurry's AppCircle SDK to
  28 + * attract high-quality users and monetize your user base see http://wiki.flurry.com/index.php?title=AppCircle.
  29 + *
  30 + */
  31 +
  32 +@interface FlurryAnalytics : NSObject {
  33 +}
  34 +
  35 +/*
  36 + optional sdk settings that should be called before start session
  37 + */
  38 ++ (void)setAppVersion:(NSString *)version; // override the app version
  39 ++ (NSString *)getFlurryAgentVersion; // get the Flurry Agent version number
  40 ++ (void)setShowErrorInLogEnabled:(BOOL)value; // default is NO
  41 ++ (void)setDebugLogEnabled:(BOOL)value; // generate debug logs for Flurry support, default is NO
  42 ++ (void)setSessionContinueSeconds:(int)seconds; // default is 10 seconds
  43 ++ (void)setSecureTransportEnabled:(BOOL)value; // set data to be sent over SSL, default is NO
  44 +
  45 +/*
  46 + start session, attempt to send saved sessions to server
  47 + */
  48 ++ (void)startSession:(NSString *)apiKey;
  49 +
  50 +/*
  51 + log events or errors after session has started
  52 + */
  53 ++ (void)logEvent:(NSString *)eventName;
  54 ++ (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters;
  55 ++ (void)logError:(NSString *)errorID message:(NSString *)message exception:(NSException *)exception;
  56 ++ (void)logError:(NSString *)errorID message:(NSString *)message error:(NSError *)error;
  57 +
  58 +/*
  59 + start or end timed events
  60 + */
  61 ++ (void)logEvent:(NSString *)eventName timed:(BOOL)timed;
  62 ++ (void)logEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters timed:(BOOL)timed;
  63 ++ (void)endTimedEvent:(NSString *)eventName withParameters:(NSDictionary *)parameters; // non-nil parameters will update the parameters
  64 +
  65 +/*
  66 + count page views
  67 + */
  68 ++ (void)logAllPageViews:(id)target; // automatically track page view on UINavigationController or UITabBarController
  69 ++ (void)logPageView; // manually increment page view by 1
  70 +
  71 +/*
  72 + set user info
  73 + */
  74 ++ (void)setUserID:(NSString *)userID; // user's id in your system
  75 ++ (void)setAge:(int)age; // user's age in years
  76 ++ (void)setGender:(NSString *)gender; // user's gender m or f
  77 +
  78 +/*
  79 + set location information
  80 + */
  81 ++ (void)setLatitude:(double)latitude longitude:(double)longitude horizontalAccuracy:(float)horizontalAccuracy verticalAccuracy:(float)verticalAccuracy;
  82 +
  83 +/*
  84 + optional session settings that can be changed after start session
  85 + */
  86 ++ (void)setSessionReportsOnCloseEnabled:(BOOL)sendSessionReportsOnClose; // default is YES
  87 ++ (void)setSessionReportsOnPauseEnabled:(BOOL)setSessionReportsOnPauseEnabled; // default is NO
  88 ++ (void)setEventLoggingEnabled:(BOOL)value; // default is YES
  89 +
  90 +@end
BIN  libFlurryAnalytics.a
Binary file not shown

0 comments on commit 10c1078

Please sign in to comment.
Something went wrong with that request. Please try again.