Login Register Free Account
Trackerbird SDK v3 for Mac OS (Objective-C)
TBApp.h
1 // ======================================
2 // *** TRACKERBIRD SOFTWARE ANALYTICS ***
3 // ******** www.trackerbird.com ********
4 // ======================================
5 // © 2013 Trackerbird. All rights reserved.
6 //
7 // SDK Version: MacOS SDK ver 3.4.1 (Obj-C)
8 // Release date: 11 Sep 2014
9 //
10 // You may get the latest version from: http://docs.trackerbird.com
11 // For customer support please visit: http://helpdesk.trackerbird.com
12 // ======================================
13 //
14 
15 #import <Foundation/Foundation.h>
16 #import "TBConfig.h"
17 #import "TBMessageResult.h"
18 #import "TBLicenseResult.h"
19 #import "TBVersionResult.h"
20 
142 typedef enum
143 {
144  TBResultStatusUnknown = 0,
145  TBResultStatusOK = 1,
146  TBResultStatusFunctionNotAvailable,
147  TBResultStatusConnectionError,
148  TBResultStatusAuthenticationFailure,
149  TBResultStatusServerError,
150  TBResultStatusConfigurationNotLoaded,
151  TBResultStatusConfigurationNotInitialized
152 }
153 TBResultStatus;
154 
155 typedef enum
156 {
157  TBPrivacyModeOff = 0, //Collects both architecture and usage data (default).
158  TBPrivacyModeLow, //Collect only architecture data but NOT usage data.
159  TBPrivacyModeHigh //Does not collect any architecture or usage data.
160 }
161 TBPrivacyMode;
162 
163 @interface TBApp : NSObject
164 {
165 
166 }
167 
171 
187 +(void)start:(TBConfig*)config completionBlock:(void(^)(TBResultStatus status))completionBlock;
188 
206 +(void)start:(TBConfig*)config completionBlock:(void(^)(TBResultStatus status))completionBlock doSync:(BOOL)doSync receiveReachout:(BOOL)receiveReachout;
207 
225 +(void)stop:(void(^)(TBResultStatus status))completionBlock;
226 
245 +(void)stopAndDoSyncWithTimeout:(NSInteger)syncTimeout completionBlock:(void(^)(TBResultStatus status))completionBlock;
246 
263 +(void)sessionStartWithID:(NSString*)sessionID completionBlock:(void(^)(TBResultStatus status))completionBlock;
264 
285 +(void)sessionStopWithID:(NSString*)sessionID completionBlock:(void(^)(TBResultStatus status))completionBlock;
286 
290 
306 +(void)sync:(void(^)(TBResultStatus status))completionBlock;
307 
324 +(void)sync:(void(^)(TBResultStatus status))completionBlock receiveReachout:(BOOL)receiveReachout;
325 
338 +(void)startAutoSync;
339 
354 +(void)startAutoSyncReceivingReachout:(BOOL)receiveReachout;
355 
366 +(void)stopAutoSync;
367 
368 
372 
389 +(void)eventTrackWithName:(NSString*)name
390  category:(NSString*)category
391  value:(id)value
392  sessionID:(NSString*)sessionID
393  allowExtendedNames:(BOOL)allowExtendedNames
394  completionBlock:(void(^)(TBResultStatus status))completionBlock;
395 
411 +(void)eventTrackWithName:(NSString*)name
412  category:(NSString*)category
413  value:(id)value
414  sessionID:(NSString*)sessionID
415  completionBlock:(void(^)(TBResultStatus status))completionBlock;
416 
417 
418 
422 
442 +(void)exceptionTrackWithClassName:(NSString*)className
443  methodName:(NSString*)methodName
444  message:(NSString*)message
445  stackTrace:(NSString*)stackTrace
446  completionBlock:(void(^)(TBResultStatus status))completionBlock;
447 
466 +(void)exceptionTrackWithClassName:(NSString*)className
467  methodName:(NSString*)methodName
468  exception:(NSException *)exception
469  completionBlock:(void(^)(TBResultStatus status))completionBlock;
470 
488 +(void)exceptionTrackWithClass:(Class)cls
489  selector:(SEL)selector
490  message:(NSString *)message
491  stackTrace:(NSString*)stackTrace
492  completionBlock:(void(^)(TBResultStatus status))completionBlock;
493 
513 +(void)exceptionTrackWithClass:(Class)cls
514  selector:(SEL)selector
515  exception:(NSException *)exception
516  completionBlock:(void(^)(TBResultStatus status))completionBlock;
517 
518 
519 
523 
554 +(void)messageCheck:(void(^)(TBMessageResult *messageResult, TBResultStatus status))completionBlock;
555 
587 +(void)messageCheckWithType:(TBMessageType)messageType completionBlock:(void(^)(TBMessageResult *messageResult, TBResultStatus status))completionBlock;
588 
592 
593 
609 +(void)versionCheck:(void(^)(TBVersionResult *versionResult, TBResultStatus status))completionBlock;
610 
614 
615 
663 +(void)keyCheck:(NSString*)key completionBlock:(void(^)(TBLicenseResult *licenseResult, TBResultStatus status))completionBlock;
664 
665 
712 +(void)keyChange:(NSString*)key completionBlock:(void(^)(TBLicenseResult *licenseResult, TBResultStatus status))completionBlock;
713 
725 +(void)setLicenseInformationWithKeyType:(TBKeyType)keyType
726  whitelistedStatus:(TBLicenseStatus)whitelistedStatus
727  expiredStatus:(TBLicenseStatus)expiredStatus
728  blacklistedStatus:(TBLicenseStatus)blacklistedStatus
729  activatedStatus:(TBLicenseStatus)activatedStatus
730  completionBlock:(void(^)(TBResultStatus status))completionBlock;
731 
743 +(void)setLicenseInformationWithKeyType:(TBKeyType)keyType
744  completionBlock:(void(^)(TBResultStatus status))completionBlock;
745 
749 
750 
762 +(void)connectionCheckToURL:(NSString*)url completionBlock:(void(^)(TBResultStatus status))completionBlock;
763 
764 
768 
784 +(void)privacyMode:(void(^)(TBPrivacyMode privacyMode, TBResultStatus status))completionBlock;
785 
800 +(void)setPrivacyMode:(TBPrivacyMode)privacyMode completionBlock:(void(^)(TBResultStatus status))completionBlock;
801 
805 
817 +(void)setCustomProperty:(NSString *)property atIndex:(NSUInteger)index completionBlock:(void(^)(TBResultStatus status))completionBlock;
818 
822 
837 +(void)updateConfig:(TBConfig*)config completionBlock:(void(^)(TBResultStatus status))completionBlock;
838 
839 
840 @end
Definition: TBLicenseResult.h:73
Definition: TBConfig.h:38
Definition: TBVersionResult.h:45
Definition: TBApp.h:163
void stopAutoSync()
void startAutoSync()
Definition: TBMessageResult.h:43