IMAAdsLoader
@interface IMAAdsLoader : NSObjectThe IMAAdsLoader class allows the requesting of ads from the ad server. Use the delegate to receive the loaded ads or loading error in case of failure.
- 
                  
                  SDK-wide settings. Note that certain settings will only be evaluated during initialization of the adsLoader. DeclarationSwift @NSCopying var settings: IMASettings { get }Objective-C @property (nonatomic, copy, readonly) IMASettings *_Nonnull settings;
- 
                  
                  Delegate that receives IMAAdsLoaderDelegate callbacks. DeclarationSwift weak var delegate: (any IMAAdsLoaderDelegate)? { get set }Objective-C @property (nonatomic, weak, nullable) id<IMAAdsLoaderDelegate> delegate;
- 
                  
                  Returns the SDK version. DeclarationSwift class func sdkVersion() -> StringObjective-C + (nonnull NSString *)sdkVersion;Return Valuethe SDK version 
- 
                  
                  Initializes an IMAAdsLoader with specific settings. The loader takes 1-2 seconds to setup once initialized, therefore reusing a single instance of the ads loader is encouraged to minimize ad request times. DeclarationSwift init(settings: IMASettings?)Objective-C - (nonnull instancetype)initWithSettings:(nullable IMASettings *)settings;Parameterssettingsthe IMASettings to use for SDK wide settings. Uses defaults when nil. Return Valuean IMAAdsLoader instance with given IMASettings 
- 
                  
                  Initializes the IMAAdsLoader with default settings. The loader takes 1-2 seconds to setup once initialized, therefore reusing a single instance of the ads loader is encouraged to minimize ad request times. DeclarationSwift init()Objective-C - (nonnull instancetype)init;Return Valuean IMAAdsLoader instance with default IMASettings 
- 
                  
                  Request ads from the ad server. The loader takes 1-2 seconds to setup on init and become ready to make ad requests. So reusing the same IMAAdsLoader instance is encouraged when making ad requests in order to minimize ad request times. DeclarationSwift func requestAds(with request: IMAAdsRequest)Objective-C - (void)requestAdsWithRequest:(nonnull IMAAdsRequest *)request;Parametersrequestthe IMAAdsRequest. If it was created for use with Picture-in-Picture, this IMAAdsLoader instance’s IMASettings must have backround playback enabled 
- 
                  
                  Request a stream with ads inserted dynamically. Reusing the same IMAAdsLoader instance is encouraged when making stream requests in order to minimize stream request latency. DeclarationSwift func requestStream(with request: IMAStreamRequest)Objective-C - (void)requestStreamWithRequest:(nonnull IMAStreamRequest *)request;Parametersrequestthe stream request 
- 
                  
                  Signal to the SDK that the content has completed. The SDK will play post-rolls at this time, if any are scheduled. DeclarationSwift func contentComplete()Objective-C - (void)contentComplete;