MoatOptions

@objc
public class MoatOptions : NSObject, AnalyticsDescription

Configure Moat analytics pre-integration

  • Constructs a MoatOptions object

    Declaration

    Swift

    @objc
    public convenience init(partnerCode: String, locationServicesEnabled: Bool = true, IDFACollectionEnabled: Bool = true, debugLoggingEnabled: Bool = false)

    Parameters

    partnerCode

    the Moat partnerCode

    locationServicesEnabled

    If ‘true’ then the SDK will attempt to use the device’s location services for more precise location data. Default = true

    IDFACollectionEnabled

    If ‘true’ then the SDK will attempt to use the device’s IDFA for more precise user info. Default = true

    debugLoggingEnabled

    If ‘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. Default = false