ALAdVideoPlaybackDelegate Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | ALAdVideoPlaybackDelegate.h |
Overview
This protocol defines a listener for ad video playback events. For ads which do not contain videos, no callbacks will be triggered.
– videoPlaybackBeganInAd:
required method
This method is invoked when a video starts playing in an ad.
- (void)videoPlaybackBeganInAd:(ALAd *)ad
Parameters
ad |
Ad in which video playback began. |
---|
Discussion
This method is invoked when a video starts playing in an ad.
This method is invoked on the main UI thread.
Declared In
ALAdVideoPlaybackDelegate.h
– videoPlaybackEndedInAd:atPlaybackPercent:fullyWatched:
required method
This method is invoked when a video stops playing in an ad.
- (void)videoPlaybackEndedInAd:(ALAd *)ad atPlaybackPercent:(NSNumber *)percentPlayed fullyWatched:(BOOL)wasFullyWatched
Parameters
ad |
Ad in which video playback ended. |
---|---|
percentPlayed |
How much of the video was watched, as a percent. |
wasFullyWatched |
Whether or not the video was watched to, or very near to, completion. |
Discussion
This method is invoked when a video stops playing in an ad.
This method is invoked on the main UI thread.
Declared In
ALAdVideoPlaybackDelegate.h