-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathALAdView.h
71 lines (57 loc) · 1.49 KB
/
ALAdView.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
//
// ALAdView.h
// sdk
//
// Created by Basil on 3/1/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <UIKit/UIKit.h>
#import "ALSdk.h"
#import "ALAdService.h"
@interface ALAdView : UIView<ALAdLoadDelegate>
@property (strong, atomic) id<ALAdLoadDelegate> adLoadDelegate;
@property (strong, atomic) id<ALAdDisplayDelegate> adDisplayDelegate;
@property (strong) NSNumber * autoload;
@property (strong, atomic) ALAdSize * adSize;
@property (strong, atomic) NSString * adPlacement;
@property (strong, atomic) UIViewController * parentController;
/**
* Start loading next advertisement. This method will return immediately. An
* advertisement will be rendered by this view when available.
*/
-(void)loadNextAd;
/**
* Render specified ad.
*
* @param ad Ad to render. Must not be null.
*/
-(void)render:(ALAd *)ad;
/**
* Initialize ad view as a banner.
*/
-(id)initBannerAd;
/**
* Initialize ad view as a MRec.
*/
-(id) initMRecAd;
/**
* Initialize ad view as a banner.
*
* @param sdk Instace of AppLovin SDK to use.
*/
-(id)initBannerAdWithSdk: (ALSdk *)anSdk;
/**
* Initialize ad view as a mrec.
*
* @param sdk Instance of AppLovin SDK to use.
*/
-(id)initMRecAdWithSdk: (ALSdk *)anSdk;
/**
* Initialize ad view with given frame and size
*
* @param frame Ad frame to use.
* @param size Ad size to use.
* @param sdk Instace of AppLovin SDK to use.
*/
- (id)initWithFrame:(CGRect)frame size:(ALAdSize *)aSize sdk:(ALSdk *) anSdk;
@end