SVSAdPlayerConfiguration
Objective-C
@interface SVSAdPlayerConfiguration : NSObject <NSCopying, NSCoding>Swift
class SVSAdPlayerConfiguration : NSObject, NSCopying, NSCodingConfiguration of the ad player.
- 
                    
                    Initialize a new instance of SVSAdPlayerConfiguration with the default configuration. DeclarationObjective-C - (nonnull instancetype)init;Swift init()Return ValueThe initialized SVSAdPlayerConfiguration instance. 
- 
                    
                    Initialize a new instance of SVSAdPlayerConfiguration from a JSON configuration. Any configuration parameter not defined in this JSON will be initialized with its default value, any additional parameter not supported in the SDK will be ignored. DeclarationObjective-C - (nullable instancetype)initWithJSON:(nonnull NSString *)json;Swift convenience init?(json: String)ParametersjsonA string containing an ad player configuration JSON. Return ValueThe initialized SVSAdPlayerConfiguration instance, or nil if the JSON is invalid. 
- 
                    
                    Asynchronously retrieve a JSON based ad player configuration set from a given URL. Any configuration parameter not defined in this JSON will be initialized with its default value, any additional parameter not supported in the SDK will be ignored. Warning The execution thread for the completion handler is not guaranteed. If you make UI modification in this handler, make sure to perform them on the main thread. DeclarationObjective-C + (void)adPlayerConfigurationFromURL:(nonnull NSURL *)adPlayerConfigurationURL completionHandler: (nonnull void (^)(SVSAdPlayerConfiguration *_Nullable, NSError *_Nullable))completionHandler;Swift class func adPlayerConfiguration(from adPlayerConfigurationURL: URL) async throws -> SVSAdPlayerConfigurationParametersadPlayerConfigurationURLThe URL of the JSON describing the ad player configuration. completionHandlerThe completion handler that will be called with the SVSAdPlayerConfiguration object. 
- 
                    
                    Display configuration. DeclarationObjective-C @property (nonatomic, readonly) SVSAdPlayerConfigurationDisplayOptions *_Nonnull displayOptions;Swift var displayOptions: SVSAdPlayerConfigurationDisplayOptions { get }
- 
                    
                    Publisher options. DeclarationObjective-C @property (nonatomic, readonly) SVSAdPlayerConfigurationPublisherOptions *_Nonnull publisherOptions;Swift var publisherOptions: SVSAdPlayerConfigurationPublisherOptions { get }
- 
                    
                    RTB options. DeclarationObjective-C @property (nonatomic, readonly) SVSAdPlayerConfigurationRTBOptions *_Nonnull RTBOptions;Swift var rtbOptions: SVSAdPlayerConfigurationRTBOptions { get }
- 
                    
                    VPAID ads options. DeclarationObjective-C @property (nonatomic, strong) SVSAdPlayerConfigurationVPAIDOptions *_Nonnull VPAIDOptions;Swift var vpaidOptions: SVSAdPlayerConfigurationVPAIDOptions { get set }
