SCAdListener
@protocol SCAdListener <NSObject>
The listener protocol that needs to be implemented by your view controller
-
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 the AVPlayer actually starts video playback
Declaration
Objective-C
- (void)videoStartsPlaybackWith:(nonnull NSURL *)url; -
Returns the rect of the avplayer layer and if it is displayed fullscreen or not
Declaration
Objective-C
- (nullable SCElementSize *)getPlayerSize; -
Returns the rect of the viewport and if the player is displayed fullscreen or not
Declaration
Objective-C
- (nullable SCElementSize *)getViewportSize;
SCAdListener Protocol Reference