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
PropertyTypeDescription
siteKeyNSStringThe MXO workspace to configure the SDK with.
touchpointNSURLThe MXO Touchpoint to configure the SDK with.
hostNSURLThe MXO host to send data to.
adminModeBOOLThe 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";
}];
Note: For more information, see how to configure the SDK or get the current configuration.