GoogleIMAConfiguration
@available(*, deprecated, message: "Renamed to GoogleIMAAdsConfiguration. Swift code can migrate to use GoogleIMAAdsConfiguration; for Objective-C THEOplayerGoogleIMAAdsConfiguration will be available starting the next major version update.")
@objc(THEOplayerGoogleIMAConfiguration)
public class GoogleIMAConfiguration : NSObject, Codable
Describes the configuration of the Google Interactive Media Ads.
-
Creates a GoogleIMAAdsConfiguration object.
Declaration
Swift
@available(*, deprecated, message: "Use GoogleIMAConfigurationBuilder to create new instances") @objc public init(useNativeIma: Bool = true, disableUI: Bool = false)
Parameters
useNativeIma
Whether the native IMA SDK should be used, defaults to true.
disableUI
Whether the ads UI need to be disabled (chromeless ads). Only applies to non TrueView ads.
-
Indicates whether the native IMA SDK is being used.
Declaration
Swift
@objc public var useNativeIma: Bool { get set }
-
Indicates whether the ads UI needs to be disabled (chromeless ads). Only applies to non TrueView ads
Declaration
Swift
@objc public var disableUI: Bool { get set }
-
Indicates whether background audio playback for the IMA SDK is enabled.
Remark
Only has effect when used with native IMA configuration.Declaration
Swift
@objc public var enableBackgroundPlayback: Bool { get }