Custom Configuration

Learn how to tailor ContextSDK settings to suit your app's unique needs.

ContextSDK operates seamlessly in the background, designed from the ground up to minimize resource usage and have no impact on your app’s performance. For most use cases, we recommend keeping the default settings unless you have specific requirements.

If needed, you can customize these options by passing a Configuration object to the applicationDidFinishLaunchingWithOptions method, as seen here:

AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
    // …
    let config = Configuration()
    ContextManager.applicationDidFinishLaunchingWithOptions(launchOptions, licenseKey: "YOUR_LICENSE_KEY", configuration: config)
    // …
}

For a comprehensive list of all the options, please refer to our iOS SDK Reference (Configuration).

Last updated

Was this helpful?