AI-generated Key Takeaways
- 
          IMAAdEventType is an enum that defines different event types sent by the IMAAdsManager to its delegate. 
- 
          These event types cover various stages of ad playback and loading, including ad break start/end, ad period start/end, ad completion, ad clicks, and ad playback progress. 
- 
          Some event types are specifically for dynamic ad insertion, such as AD_BREAK_ENDED,AD_BREAK_STARTED,AD_PERIOD_ENDED,AD_PERIOD_STARTED,CUEPOINTS_CHANGED,STREAM_LOADED, andSTREAM_STARTED.
- 
          Events like ICON_FALLBACK_IMAGE_CLOSEDandICON_TAPPEDare related to ad icon interactions, with specific behaviors noted for iOS and tvOS.
- 
          The enum provides distinct cases for events like CLICKED,COMPLETE,FIRST_QUARTILE,MIDPOINT,THIRD_QUARTILE,PAUSE,RESUME,SKIPPED, andSTARTEDto track linear ad progress and user interaction.
IMAAdEventType
enum IMAAdEventType : NSInteger {}Different event types sent by the IMAAdsManager to its delegate.
- 
                  
                  Ad break ready. DeclarationSwift case AD_BREAK_READY = 0Objective-C kIMAAdEvent_AD_BREAK_READY
- 
                  
                  Ad break will not play back any ads. DeclarationSwift case AD_BREAK_FETCH_ERROR = 1Objective-C kIMAAdEvent_AD_BREAK_FETCH_ERROR
- 
                  
                  Fired the first time each ad break ends. Applications must reenable seeking when this occurs (only used for dynamic ad insertion). DeclarationSwift case AD_BREAK_ENDED = 2Objective-C kIMAAdEvent_AD_BREAK_ENDED
- 
                  
                  Fired first time each ad break begins playback. If an ad break is watched subsequent times this will not be fired. Applications must disable seeking when this occurs (only used for dynamic ad insertion). DeclarationSwift case AD_BREAK_STARTED = 3Objective-C kIMAAdEvent_AD_BREAK_STARTED
- 
                  
                  Fired every time the stream switches from advertising or slate to content. This will be fired even when an ad is played a second time or when seeking into an ad (only used for dynamic ad insertion). DeclarationSwift case AD_PERIOD_ENDED = 4Objective-C kIMAAdEvent_AD_PERIOD_ENDED
- 
                  
                  Fired every time the stream switches from content to advertising or slate. This will be fired even when an ad is played a second time or when seeking into an ad (only used for dynamic ad insertion). DeclarationSwift case AD_PERIOD_STARTED = 5Objective-C kIMAAdEvent_AD_PERIOD_STARTED
- 
                  
                  All valid ads managed by the ads manager have completed or the ad response did not return any valid ads. DeclarationSwift case ALL_ADS_COMPLETED = 6Objective-C kIMAAdEvent_ALL_ADS_COMPLETED
- 
                  
                  Ad clicked. DeclarationSwift case CLICKED = 7Objective-C kIMAAdEvent_CLICKED
- 
                  
                  Single ad has finished. DeclarationSwift case COMPLETE = 8Objective-C kIMAAdEvent_COMPLETE
- 
                  
                  Cuepoints changed for VOD stream (only used for dynamic ad insertion). For this event, the IMAAdEvent.adDataproperty contains a list ofIMACuepoints atIMAAdEvent.adData[@"cuepoints"].DeclarationSwift case CUEPOINTS_CHANGED = 9Objective-C kIMAAdEvent_CUEPOINTS_CHANGED
- 
                  
                  The user has closed the icon fallback image dialog. This may be a good time to resume ad playback, which the SDK autopaused on icon tap. This event only fires for tvOS. DeclarationSwift case ICON_FALLBACK_IMAGE_CLOSED = 10Objective-C kIMAAdEvent_ICON_FALLBACK_IMAGE_CLOSED
- 
                  
                  The user has tapped an ad icon. On iOS, the SDK will navigate to the landing page. On tvOS, the SDK will present a modal dialog containing the VAST icon fallback image. DeclarationSwift case ICON_TAPPED = 11Objective-C kIMAAdEvent_ICON_TAPPED
- 
                  
                  First quartile of a linear ad was reached. DeclarationSwift case FIRST_QUARTILE = 12Objective-C kIMAAdEvent_FIRST_QUARTILE
- 
                  
                  An ad was loaded. DeclarationSwift case LOADED = 13Objective-C kIMAAdEvent_LOADED
- 
                  
                  A log event for the ads being played. These are typically non fatal errors. DeclarationSwift case LOG = 14Objective-C kIMAAdEvent_LOG
- 
                  
                  Midpoint of a linear ad was reached. DeclarationSwift case MIDPOINT = 15Objective-C kIMAAdEvent_MIDPOINT
- 
                  
                  Ad paused. DeclarationSwift case PAUSE = 16Objective-C kIMAAdEvent_PAUSE
- 
                  
                  Ad resumed. DeclarationSwift case RESUME = 17Objective-C kIMAAdEvent_RESUME
- 
                  
                  Ad has skipped. DeclarationSwift case SKIPPED = 18Objective-C kIMAAdEvent_SKIPPED
- 
                  
                  Ad has started. DeclarationSwift case STARTED = 19Objective-C kIMAAdEvent_STARTED
- 
                  
                  Stream request has loaded (only used for dynamic ad insertion). DeclarationSwift case STREAM_LOADED = 20Objective-C kIMAAdEvent_STREAM_LOADED
- 
                  
                  Stream has started playing (only used for dynamic ad insertion). Start Picture-in-Picture here if applicable. DeclarationSwift case STREAM_STARTED = 21Objective-C kIMAAdEvent_STREAM_STARTED
- 
                  
                  Ad tapped. DeclarationSwift case TAPPED = 22Objective-C kIMAAdEvent_TAPPED
- 
                  
                  Third quartile of a linear ad was reached. DeclarationSwift case THIRD_QUARTILE = 23Objective-C kIMAAdEvent_THIRD_QUARTILE