34 #import <Foundation/Foundation.h> 41 #import "IMAAdPlaybackInfo.h" 42 #import "IMAContentPlayhead.h" 46 #pragma mark IMAAdsManagerDelegate 77 - (void)adsManagerDidRequestContentPause:(
IMAAdsManager *)adsManager;
85 - (void)adsManagerDidRequestContentResume:(
IMAAdsManager *)adsManager;
97 adDidProgressToTime:(NSTimeInterval)mediaTime
98 totalTime:(NSTimeInterval)totalTime;
106 - (void)adsManagerAdPlaybackReady:(
IMAAdsManager *)adsManager;
113 - (void)adsManagerAdDidStartBuffering:(
IMAAdsManager *)adsManager;
121 - (void)adsManager:(
IMAAdsManager *)adsManager adDidBufferToMediaTime:(NSTimeInterval)mediaTime;
125 #pragma mark - IMAAdsManager 135 @property(nonatomic, weak) NSObject<IMAAdsManagerDelegate> *
delegate;
153 @property(nonatomic, assign)
float volume;
void discardAdBreak()
If an ad break is currently playing, discard it and resume content.
void destroy()
Causes the ads manager to stop the ad and clean its internal state.
Set of properties that influence how ads are rendered.
Definition: IMAAdsRenderingSettings.h:69
The IMAAdDisplayContainer is responsible for managing the ad container view and companion ad slots us...
Definition: IMAAdDisplayContainer.h:16
void pause()
Pauses advertisement.
void resume()
Resumes the advertisement.
instancetype NS_UNAVAILABLE()
:nodoc:
Simple data class used to transport ad playback information.
Definition: IMAAdEvent.h:113
NSArray * adCuePoints
List of content time offsets at which ad breaks are scheduled.
Definition: IMAAdsManager.h:142
NSObject< IMAAdsManagerDelegate > * delegate
The IMAAdsManagerDelegate to notify with events during ad playback.
Definition: IMAAdsManager.h:135
The IMAAdsManager class is responsible for playing ads.
Definition: IMAAdsManager.h:130
float volume
Set and get the volume for the current ad.
Definition: IMAAdsManager.h:153
A callback protocol for IMAAdsManager.
Definition: IMAAdsManager.h:51
void start()
Starts advertisement playback.
void skip()
Skips the advertisement if the ad is skippable and the skip offset has been reached.
void clicked()
Performs a clickthrough on the advertisement if the UI was successfully disabled via AdsRenderingSett...
Surfaces an error that occurred during ad loading or playing.
Definition: IMAAdError.h:151
id< IMAAdPlaybackInfo > adPlaybackInfo
Groups various properties about the linear ad playback.
Definition: IMAAdsManager.h:147