AI-generated Key Takeaways
-
IMACompanionDelegate receives events from the companion ad slot.
-
The
companionSlot:filled:method is called when the slot is filled or not filled. -
The
companionSlotWasClicked:method is called when the slot is clicked on by the user and will successfully navigate away.
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:(nonnull IMACompanionAdSlot *)slot filled:(BOOL)filled;Parameters
slotthe IMACompanionAdSlot receiving the event
filledis 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:(nonnull IMACompanionAdSlot *)slot;Parameters
slotthe IMACompanionAdSlot receiving the event