Configuration API
MXOConfiguration
The configuration object for the MXO SDK.
@interface MXOConfiguration : NSObject
@property (nonatomic, copy, readonly, nullable) NSString *siteKey;
@property (nonatomic, strong, readonly, nullable) NSURL *touchpoint;
@property (nonatomic, strong, readonly, nullable) NSURL *host;
@property (nonatomic, assign, readonly) BOOL adminMode;
@end
Property | Type | Description |
---|---|---|
siteKey | NSString | The MXO workspace to configure the SDK with. |
touchpoint | NSURL | The MXO Touchpoint to configure the SDK with. |
host | NSURL | The MXO host to send data to. |
adminMode | BOOL | The Mode of the MXO SDK. |
Create an instance using the Builder as shown below:
MXOConfiguration *mxoConfiguration = [MXOConfiguration initWithBuilder:^(MXOConfigurationBuilder * _Nonnull builder) {
builder.adminMode = NO;
builder.touchpoint = [NSURL URLWithString:@"myAppsNameURI"];
builder.host = [NSURL URLWithString:@"eu2.thunderhead.com"];
builder.siteKey = @"ONE-XXXXXXXXXX-1022";
}];