Skip to main content
ClicktermClient is the entry point for the ClickTerm iOS SDK. Initialize it once before displaying a clickwrap.

Initialize

Call initialize() when your app starts:
The App ID cannot be empty. Calling other SDK methods before initialization throws ClicktermError.notInitialized.
Never expose your App Key in client-side code. The App Key is used only for backend verification calls. The client SDK uses only the App ID. Store the App Key safely — it won’t display again after creation, but can be regenerated. Regenerating the key requires updating your backend configuration.

Shut down

shutdown() clears the current SDK configuration and loaded translations. Call it when signing out a user or replacing the active SDK configuration. Call initialize() again before the next SDK operation.

Lower-level requests

Most apps should use ClicktermDialog. These lower-level methods are available when you need to build your own presentation:
All request methods use Swift concurrency and can throw a ClicktermError.