SCAdSequencerDelegate
@protocol SCAdSequencerDelegate <NSObject>
Protocol that you implement in your view controller to get informed about SCAdSequencer events
-
The Sequencer calls this function when the contentVideo should be played
Declaration
Objective-C
- (void)playContentVideoWith:(nonnull NSString *)urlString;
-
The sequencer tells you to pause the content video
Declaration
Objective-C
- (void)pauseContentVideo;
-
The sequencer tells you to resume the content video
Declaration
Objective-C
- (void)resumeContentVideo;
-
Called when the content video has finished
Declaration
Objective-C
- (void)contentVideoFinished;
-
Called when the content video fails for any reason
Declaration
Objective-C
- (void)contentVideoError:(nonnull NSError *)error;
-
Called on for every ScAdInfo type change
Declaration
Objective-C
- (void)onEventCallbackWithEvent:(nonnull SCAdEvent *)event;
-
Called when sequencer has finished its playback sequence
Declaration
Objective-C
- (void)sequencerFinished;
-
Called when the click through alert should be displayed
Declaration
Objective-C
- (void)displayClickThroughAlert:(id)alert;
-
Called when the AVPlayer actually starts video playback
Declaration
Objective-C
- (void)adStartsPlayback;
-
Give back the current player frame and viewMode (normal or fullscreen)
Declaration
Objective-C
- (nullable SCElementSize *)getPlayerSize;
-
Give back the frame of the viewPort and the viewMode (normal or fullscreen)
Declaration
Objective-C
- (nullable SCElementSize *)getViewportSize;
-
if you use customizableClickThroughAlert, add this function
Declaration
Objective-C
- (void)displayClickThroughAlert;