Skip to content

Commit

Permalink
Merge pull request #59 from adjust/v4
Browse files Browse the repository at this point in the history
V4
  • Loading branch information
nonelse committed Dec 8, 2014
2 parents 414aa6d + 614bee4 commit 88f5656
Show file tree
Hide file tree
Showing 101 changed files with 5,070 additions and 4,152 deletions.
378 changes: 209 additions & 169 deletions Adjust.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

44 changes: 44 additions & 0 deletions Adjust/ADJActivityHandler.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
//
// ADJActivityHandler.h
// Adjust
//
// Created by Christian Wellenbrock on 2013-07-01.
// Copyright (c) 2013 adjust GmbH. All rights reserved.
//

#import "Adjust.h"
#import "ADJAttribution.h"

@protocol ADJActivityHandler <NSObject>

- (id)initWithConfig:(ADJConfig *)adjustConfig;

- (void)trackSubsessionStart;
- (void)trackSubsessionEnd;

- (void)trackEvent:(ADJEvent *)event;

- (void)finishedTrackingWithResponse:(NSDictionary *)jsonDict;
- (void)setEnabled:(BOOL)enabled;
- (BOOL)isEnabled;
- (void)appWillOpenUrl:(NSURL*)url;
- (void)setDeviceToken:(NSData *)deviceToken;

- (ADJAttribution*) attribution;
- (void) setAttribution:(ADJAttribution*)attribution;
- (void) setAskingAttribution:(BOOL)askingAttribution;

- (BOOL) updateAttribution:(ADJAttribution*) attribution;
- (void) setIadDate:(NSDate*)iAdImpressionDate withPurchaseDate:(NSDate*)appPurchaseDate;

- (void) launchAttributionDelegate;

- (void) setOfflineMode:(BOOL)enabled;

@end

@interface ADJActivityHandler : NSObject <ADJActivityHandler>

+ (id<ADJActivityHandler>)handlerWithConfig:(ADJConfig *)adjustConfig;

@end
Loading

0 comments on commit 88f5656

Please sign in to comment.