-
Notifications
You must be signed in to change notification settings - Fork 0
/
ALSdk.h
105 lines (87 loc) · 2.37 KB
/
ALSdk.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
//
// AppLovinSdk.h
//
// Created by Basil Shikin on 2/1/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "ALSdkSettings.h"
#import "ALAdService.h"
#import "ALTargetingData.h"
/**
* Current SDK version
*/
extern NSString * const AlSdkVersion;
/**
* This is a custom URI scheme that is used to Applovin specific actions. An
* example of such action would be:
* <pre>
* applovin://com.applovin.sdk/adservice/track_click
* </pre>
*/
extern NSString * const AlSdkUriScheme;
/**
* This is a host name that is used to Applovin SDK custom actions
*/
extern NSString * const AlSdkUriHost;
/**
* This is a base class for AppLovin Ad SDK.
*
* @version 1.0
*/
@interface ALSdk : NSObject
@property (readonly, strong) NSString * sdkKey;
@property (readonly, strong) ALSdkSettings * settings;
/**
* Get an instance of AppLovin Ad service. This service is
* used to fetch ads from AppLovin servers, track clicks and
* conversions.
*
* @return Ad service. Guaranteed not to be null.
*/
-(ALAdService *) adService;
/**
* Get an instance of AppLovin Targeting data. This object contains
* targeting values that could be provided to AppLovin for better
* advertisement performance.
*
* @return Current targeting data. Guaranteed not to be null.
*/
-(ALTargetingData *) targetingData;
/**
* Set Plugin version.
*
* @param string Plugin version to set.
*/
-(void) setPluginVersion: (NSString *) version;
/**
* Initialize currnet version of the SDK
*
*/
-(void) initializeSdk;
/**
* Get a shared instance of AppLovin SDK. Please make sure that application's
* <code>Info.plist</code> includes a property 'AppLovinSdkKey' that is set to provided SDK key.
*
* @return An instance of AppLovinSDK
*/
+(ALSdk *) shared;
/**
* Initialize the default instance of AppLovin SDK. Please make sure that application's
* <code>Info.plist</code> includes a property 'AppLovinSdkKey' that is set to provided SDK key.
*
* @return An instance of AppLovinSDK
*/
+(void) initializeSdk;
/**
* Get an instance of AppLovin SDK.
*
* @param sdkKey SDK key to use. May be null.
* @param userSettings User-provided settings. May be null.
*
* @return An instance of AppLovinSDK
*/
+(ALSdk *) sharedWithKey: (NSString *)sdkKey settings:(ALSdkSettings *)settings;
+(NSString *) version;
@end