-
Notifications
You must be signed in to change notification settings - Fork 0
/
ALAdDisplayDelegate.h
53 lines (47 loc) · 1.44 KB
/
ALAdDisplayDelegate.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
//
// ALAdDisplayDelegate.h
// sdk
//
// Created by Basil on 3/23/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "ALAd.h"
/**
* This protocol defines a listener for ad display events.
*
* @author Basil Shikin
* @since 2.0
*/
@class ALAdView;
@protocol ALAdDisplayDelegate <NSObject>
/**
* This method is invoked when the ad is displayed in the view.
* <p>
* This method is invoked on the main UI thread.
*
* @param ad Ad that was just displayed. Guranteed not to be null.
* @param view Ad view in which the ad was displayed. Guranteed not to be null.
*/
-(void) ad:(ALAd *) ad wasDisplayedIn: (UIView *)view;
/**
* This method is invoked when the ad is hidden from in the view. This occurs
* when the ad is rotated or when it is explicitly closed.
* <p>
* This method is invoked on the main UI thread.
*
* @param ad Ad that was just hidden. Guranteed not to be null.
* @param view Ad view in which the ad was hidden. Guranteed not to be null.
*/
-(void) ad:(ALAd *) ad wasHiddenIn: (UIView *)view;
/**
* This method is invoked when the ad is clicked from in the view.
* <p>
* This method is invoked on the main UI thread.
*
* @param ad Ad that was just clicked. Guranteed not to be null.
* @param view Ad view in which the ad was hidden. Guranteed not to be null.
*/
-(void) ad:(ALAd *) ad wasClickedIn: (UIView *)view;
@end