IMACompanionDelegate

@protocol IMACompanionDelegate <NSObject>

Delegate to receive events from the companion ad slot.

  • Called when the slot is either filled or not filled.

    Declaration

    Swift

    optional func companionSlot(_ slot: IMACompanionAdSlot!, filled: Bool)

    Objective-C

    - (void)companionSlot:(IMACompanionAdSlot *)slot filled:(BOOL)filled;

    Parameters

    slot

    the IMACompanionAdSlot receiving the event

    filled

    is the slot filled or not

  • Called when the slot is clicked on by the user and will successfully navigate away.

    Declaration

    Swift

    optional func companionSlotWasClicked(_ slot: IMACompanionAdSlot!)

    Objective-C

    - (void)companionSlotWasClicked:(IMACompanionAdSlot *)slot;

    Parameters

    slot

    the IMACompanionAdSlot receiving the event