UIConfiguration
@available(*, deprecated, message: "This class will be removed with the next major release.")
@objc(THEOplayerUIConfiguration)
public class UIConfiguration : NSObject, Encodable
An object to configure UI.
Remark
Only configuring the localization for Google IMA is supported.-
The language code string to be used for localizing Google IMA.
Declaration
Swift
@available(*, deprecated, message: "This property will be removed with the next major release. To configure the language for Google IMA, set the language property on `IMASettings` and pass the settings to `GoogleIMAIntegrationFactory.createIntegration`. For more info check: https://github.com/THEOplayer/theoplayer-sdk-ios/tree/master/THEOplayer-Integration-GoogleIMA") public private(set) var language: String { get }
-
Construct a UIConfiguration object.
Remark
The values passed should be in a ISO-3166 Alpha-2 or ccTLD format.
Declaration
Swift
@available(*, deprecated, message: "This initializer will be removed with the next major release. To configure the language for Google IMA, set the language property on `IMASettings` and pass the settings to `GoogleIMAIntegrationFactory.createIntegration`. For more info check https://github.com/THEOplayer/theoplayer-sdk-ios/tree/master/THEOplayer-Integration-GoogleIMA") @objc public init(language: String)
Parameters
language
Use a valid language code string (e.g. ‘es’ for Spanish) to be used for localizing Google IMA.