Type Definitions

The following type definitions are available globally.

  • A callback that will receive a list of ad objects when they have been prepared (third party VAST data has been loaded and parsed).

    Declaration

    Objective-C

    typedef void (^OOPulseAdListReadyCallback)(NSArray<id<OOPulseVideoAd>> *)

    Swift

    typealias OOPulseAdListReadyCallback = ([any OOPulseVideoAd]?) -> Void
  • Callback to confirm that session was successfully extended.

    Declaration

    Objective-C

    typedef void (^OOSessionExtensionSuccessBlock)(void)

    Swift

    typealias OOSessionExtensionSuccessBlock = () -> Void
  • A block that receives a OOLogItem instance that provides information about a logged event.

    Declaration

    Objective-C

    typedef void (^OOLogListenerBlock)(OOLogItem *)

    Swift

    typealias OOLogListenerBlock = (OOLogItem?) -> Void