MPSOptions

public final class MPSOptions: NSObject

List of initialization options for MPS SDK.

  • Constructor. Creates the instance of options.

    Declaration

    Swift

    public required init(testMode: Bool)

    Parameters

    testMode

    Bool - test mode for the library.

  • logLevel is used to set the log level for the library.

    Declaration

    Swift

    public var logLevel: MPSSDKLogLevel = .none
  • testMode is used to set the test mode for the library.

    Declaration

    Swift

    public var testMode: Bool = false
  • moatLocationTrackingEnabled is used to enable or disable Moat location tracking. If ‘true’ then the Moat SDK will attempt to use the device’s location services for more precise location data.

    Declaration

    Swift

    public var moatLocationTrackingEnabled: Bool = true
  • moatAdIdCollectionEnabled is used to enable or disable Moat IDFA tracking. If ‘true’ then the Moat SDK will attempt to use the device’s IDFA for more precise user info. The SDK will only use a user’s IDFA if the user has advertising tracking enabled on the device.

    Declaration

    Swift

    public var moatAdIdCollectionEnabled: Bool = true
  • moatLogging is used to set logging for the Moat SDK. If ‘true’ then the Moat SDK will log information to assist in the implementation and testing process.

    Declaration

    Swift

    public var moatLogging: Bool = false