IMAAdEvent.h
1 
10 #import <Foundation/Foundation.h>
11 
12 #import "IMAAd.h"
13 
14 #pragma mark IMAAdEventType
15 
19 typedef NS_ENUM(NSInteger, IMAAdEventType){
23  kIMAAdEvent_AD_BREAK_READY,
27  kIMAAdEvent_AD_BREAK_ENDED,
31  kIMAAdEvent_AD_BREAK_STARTED,
35  kIMAAdEvent_ALL_ADS_COMPLETED,
39  kIMAAdEvent_CLICKED,
43  kIMAAdEvent_COMPLETE,
49  kIMAAdEvent_CUEPOINTS_CHANGED,
53  kIMAAdEvent_FIRST_QUARTILE,
57  kIMAAdEvent_LOADED,
61  kIMAAdEvent_LOG,
65  kIMAAdEvent_MIDPOINT,
69  kIMAAdEvent_PAUSE,
73  kIMAAdEvent_RESUME,
77  kIMAAdEvent_SKIPPED,
81  kIMAAdEvent_STARTED,
85  kIMAAdEvent_STREAM_LOADED,
90  kIMAAdEvent_STREAM_STARTED,
94  kIMAAdEvent_TAPPED,
98  kIMAAdEvent_THIRD_QUARTILE
99 };
100 
101 #pragma mark - Ad Data Keys
102 
106 extern NSString *const kIMAAdBreakTime;
107 
108 #pragma mark - IMAAdEvent
109 
113 @interface IMAAdEvent : NSObject
114 
118 @property(nonatomic, readonly) IMAAdEventType type;
119 
123 @property(nonatomic, copy, readonly) NSString *typeString;
124 
129 @property(nonatomic, strong, readonly) IMAAd *ad;
130 
134 @property(nonatomic, copy, readonly) NSDictionary *adData;
135 
139 - (instancetype)init NS_UNAVAILABLE;
140 
141 @end
instancetype NS_UNAVAILABLE()
:nodoc:
IMAAd * ad
The current ad that is playing or just played.
Definition: IMAAdEvent.h:129
Simple data class used to transport ad playback information.
Definition: IMAAdEvent.h:113
Data object representing a single ad.
Definition: IMAAd.h:18
NSDictionary * adData
Extra data about the ad.
Definition: IMAAdEvent.h:134
NSString * typeString
Stringified type of the event.
Definition: IMAAdEvent.h:123
IMAAdEventType type
Type of the event.
Definition: IMAAdEvent.h:118