Configuration API
MXOConfiguration
The configuration object for the MXO SDK.
open class MXOConfiguration : NSObject {
open var siteKey: String? { get }
open var touchpoint: URL? { get }
open var host: URL? { get }
open var adminMode: Bool { get }
}
Property | Type | Description |
---|---|---|
siteKey | String? | The MXO workspace to configure the SDK with. |
touchpoint | URL? | The MXO Touchpoint to configure the SDK with. |
host | URL? | The MXO host to send data to. |
adminMode | Bool | The Mode of the MXO SDK. |
Create an instance using the Builder as shown below:
let configuration = MXOConfiguration { builder in
builder.adminMode = false
builder.touchpoint = URL(string: "myAppsNameURI")
builder.host = URL(string: "eu2.thunderhead.com")
builder.siteKey = "ONE-XXXXXXXXXX-1022"
}