Launch Configuration

You can set up VWO Config while initializing your VWO SDK. This is helpful if you want to perform the following tasks:

VWOConfig *config = [VWOConfig new];
config.optOut = YES;
config.customVariables = @{@"user" : @"free"};
config.disablePreview = YES;
config.userID = "[email protected]"

[VWO launchForAPIKey:@"<your-api-key>" config:config completion:^{
  //Code executed after launch is complete
} failure:^(NSString * _Nonnull error) {
	// Failure handling
}];
let config = VWOConfig()
config.optOut = true;
config.customVariables = ["user" : "free"]
config.disablePreview = true;

VWO.launch(apiKey: "<your-api-key>", config: config
  completion: {
	   //Code executed after launch is complete     
	}, failure: { error in
      print(error)
})