SCPlayerEventListener
@protocol SCPlayerEventListener <NSObject>
Use this protocol to inform the adSlotController about player related events
-
Inform adSlotController about the player state
Declaration
Objective-C
- (void)playerEventCallbackWith:(SCAdPlayerEventType)playerEventType;
-
Get the current adInfo object
Declaration
Objective-C
- (void)getAdInfo:(SCAdInfoCompletionBlock _Nonnull)completion;
-
Get the last adError object
Declaration
Objective-C
- (void)getAdError:(SCAdErrorCompletionBlock _Nonnull)completion;
-
Get the publicAdSlot object
Declaration
Objective-C
- (void)getPublicAdSlot:(SCPublicAdSlotCompletionBlock _Nonnull)completion;
-
Inform the adSlotController about a clickThrough
Declaration
Objective-C
- (void)onClickThrough;
-
Inform the adSlotController about an empty player buffer (needed for OMID)
Declaration
Objective-C
- (void)onBufferEmpty;
-
Inform the adSlotController about a refilled player buffer (needed for OMID)
Declaration
Objective-C
- (void)onBufferRefilled;
-
Inform the adSlotController about a successfull ad video load
Declaration
Objective-C
- (void)loadAdSuccess;
-
Inform the adSlotController about an unsuccessfull ad video load
Declaration
Objective-C
- (void)loadAdFailure;
-
Request stopping the current ad slot (if you leave your viewController during ad playback for example)
Declaration
Objective-C
- (void)stopAdSlot;