IMAAdEvent

@interface IMAAdEvent : NSObject

Simple data class used to transport ad playback information.

  • Type of the event.

    Declaration

    Swift

    var type: IMAAdEventType { get }

    Objective-C

    @property (readonly, nonatomic) IMAAdEventType type;
  • Stringified type of the event.

    Declaration

    Swift

    var typeString: String! { get }

    Objective-C

    @property (readonly, copy, nonatomic) NSString *typeString;
  • ad

    The current ad that is playing or just played. This will be nil except for events where an ad is available (start, quartiles, midpoint, complete, and tap).

    Declaration

    Swift

    var ad: IMAAd! { get }

    Objective-C

    @property (readonly, strong, nonatomic) IMAAd *ad;
  • Extra data about the ad. Can be nil.

    Declaration

    Swift

    var adData: [String : Any]! { get }

    Objective-C

    @property (readonly, copy, nonatomic) NSDictionary<NSString *, id> *adData;