AI-generated Key Takeaways
-
IMACompanionDelegate is a delegate protocol that receives events from companion ad slots.
-
The
companionSlot:filled:method is called when a companion ad slot is either filled or not filled. -
The
companionSlotWasClicked:method is called when a companion ad slot is clicked by the user, leading to navigation away from the content.
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