AgamaPlayerConfiguration
@available(*, deprecated, message: "This type is no longer available and will be removed in a future version.")
@objc(THEOplayerAgamaPlayerConfiguration)
public class AgamaPlayerConfiguration : NSObject, AnalyticsDescription, Codable
The Agama player configuration.
Since
v.2.61.0-
The analytics integration that is being used, in this case
AnalyticsIntegration.agama
.Declaration
Swift
@objc public var integration: AnalyticsIntegration
-
The configuration string for the EMP client.
Declaration
Swift
@objc public private(set) var config: String { get }
-
The log level at which warnings/errors will be printed. Defaults to fatal (on crash)
Declaration
Swift
@objc public private(set) var logLevel: AgamaLogging { get }
-
The application name that will be used.
Declaration
Swift
@objc public private(set) var application: String { get }
-
The version of the application that currently is being used.
Declaration
Swift
@objc public private(set) var applicationVersion: String { get }
-
The identifier of the account that can be used. This will be visible to detect your device on the Agama dashboard.
Declaration
Swift
@objc public private(set) var userAccountID: String? { get }
-
Constructs an AgamaPlayerConfiguration object.
Declaration
Swift
@objc public init(config: String, logLevel: AgamaLogging = .fatal, application: String? = nil, applicationVersion: String? = nil, userAccountID: String? = nil)
Parameters
config
Configuration string EXP: ‘agg_server_ip=http://127.0.0.1:8191/report;report_interval=60;id_report_interval=240;operator_id=fooSoo’
logLevel
AgamaLogging. Defaults to
AgamaLogging.fatal
.application
Application’s name, it will be automatically detected from the host app if nil is provided. Defaults to nil.
applicationVersion
Application’s version, it will be automatically detected from the host app if nil is provided. Defaults to nil.
-
Constructs an AgamaPlayerConfiguration object.
Declaration
Swift
@objc public convenience init(config: String)
Parameters
config
Configuration string EXP: ‘agg_server_ip=http://127.0.0.1:8191/report;report_interval=60;id_report_interval=240;operator_id=fooSoo’