MoatOptions
@available(*, deprecated, message: "This type is no longer available and will be removed in a future version.")
@objc(THEOplayerMoatOptions)
public class MoatOptions : NSObject, AnalyticsDescription, Codable
Configure Moat analytics pre-integration.
-
The type of
AnalyticsIntegration.Declaration
Swift
@objc public var integration: AnalyticsIntegration -
Constructs a MoatOptions object.
Declaration
Swift
@objc public convenience init(partnerCode: String, locationServicesEnabled: Bool = true, IDFACollectionEnabled: Bool = true, debugLoggingEnabled: Bool = false)Parameters
partnerCodeThe Moat partnerCode.
locationServicesEnabledIf ‘true’ then the SDK will attempt to use the device’s location services for more precise location data. Defaults to true.
IDFACollectionEnabledIf ‘true’ then the SDK will attempt to use the device’s IDFA for more precise user info. Defaults to true.
debugLoggingEnabledIf ‘true’ and a ‘MOAT_LOGGING’ environment variable is set in Xcode, then the SDK will log information to assist in the implementation and testing process. Defaults to false.
MoatOptions Class Reference