API Reference
A feature-grouped index of every public type the SDK exposes. Each entry links to the page where the type is used in context.
This page is a feature-grouped index of every public type the SDK exposes.
Client & configuration
| Symbol | Description |
|---|---|
ZetaClient | Singleton entry point for the SDK. |
ZTConfig | Configuration object passed to ZetaClient.shared.initialize(config:). |
ZTRegion | Enum of supported ZMP regions (.US, .EU). |
ZTAppEnvironment | Enum representing the app environment for APNs (.PRODUCTION, .SANDBOX). |
See Getting Started.
User & contacts
| Symbol | Description |
|---|---|
ZTUserManagable | Protocol exposed via ZetaClient.shared.user for user operations. |
ZTUser | User model passed to updateUser(_:) or built via the builder pattern. |
ZTUserEmail | Email contact with optional ZTContactAdditionalInfo. |
ZTUserPhone | Phone contact with optional ZTContactAdditionalInfo. |
ZTContactAdditionalInfo | Preferences, subscription status, and custom properties for a contact. |
ZTContactSubscriptionStatus | Enum of subscription states (new, active, inactive, none). |
ZTLocation | Latitude/longitude plus foreground/background flag attached to events. |
See Contact Management.
Events
| Symbol | Description |
|---|---|
ZetaClient.shared.event | Event tracking namespace. |
trackScreenName(screen:deeplink:properties:) | Track screen navigation. |
send(name:properties:) | Send a custom event. |
See Contact Management.
Push notifications
| Symbol | Description |
|---|---|
ZetaClient.shared.push | Push notification namespace. |
ZTDeeplinkDelegate | Delegate for receiving deeplinks carried by Zeta notifications. Implement onZetaNotificationClicked(deeplink:extraInfo:) — deeplink is the target URL/deep link from the campaign, and extraInfo is the dictionary of Additional Values configured in ZMP (pass-through key-value pairs). |
userNotificationCenter(_:didReceive:withCompletionHandler:) | SDK-managed click tracking helper for UNUserNotificationCenterDelegate. |
trackNotificationClicked(response:) | Manual click tracking. |
See Push Notifications.
Notification Service Extension
| Symbol | Description |
|---|---|
ZTNotificationService | Rich notification rendering and delivery tracking inside an NSE. |
canHandle(_:) | Detects whether an incoming request is a Zeta notification. |
trackNotificationDelivered(_:appGroupId:) | Reports notification delivery to the SDK. |
handleNotification(_:withContentHandler:) | Entry point for Pattern 2 (non-subclass) integrations. |
In-App Messaging
| Symbol | Description |
|---|---|
ZetaClient.shared.inApp | In-app messaging namespace (start() / stop()). |
ZTInAppMessage | The message model passed to lifecycle delegate callbacks. |
ZTInAppMessageDelegate | Delegate for willAppear / didAppear / onClicked / onDismissed. |
ZTInAppMessageFormDataModel | Data returned by in-app email collection forms. |
See In-App Messaging.
App Inbox
| Symbol | Description |
|---|---|
ZTAppInboxManagable | Protocol exposed via ZetaClient.shared.inbox. |
ZTAppInboxMessage | A single inbox entry. Key fields: messageId, title, body, mediaUrl, status, expirationTimestamp, actionList, templateId. additionalData — a [String: String] dictionary of Additional Values configured in the ZMP campaign builder; use these for custom routing or display logic in your inbox UI. |
ZTAppInboxMessageStatus | Read / unread / deleted state. |
ZTAppInboxMessageStatusHelper | Converts between ZTAppInboxMessageStatus and its string representation. |
ZTCtaAction | A call-to-action button attached to an inbox message. |
See App Inbox.
Logging
| Symbol | Description |
|---|---|
ZTLogger | Static namespace for all logging APIs. |
ZTLogLevel | Enum of log severities (verbose, debug, info, warning, error, none). |
ZTLogPrivacy | Enum of log visibility policies (private, public). |
See Advanced / Logging.
See also
- Changelog — complete Added / Changed / Deprecated / Removed log for every version.
- Migration Guide — breaking changes between versions.
