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

SymbolDescription
ZetaClientSingleton entry point for the SDK.
ZTConfigConfiguration object passed to ZetaClient.shared.initialize(config:).
ZTRegionEnum of supported ZMP regions (.US, .EU).
ZTAppEnvironmentEnum representing the app environment for APNs (.PRODUCTION, .SANDBOX).

See Getting Started.

User & contacts

SymbolDescription
ZTUserManagableProtocol exposed via ZetaClient.shared.user for user operations.
ZTUserUser model passed to updateUser(_:) or built via the builder pattern.
ZTUserEmailEmail contact with optional ZTContactAdditionalInfo.
ZTUserPhonePhone contact with optional ZTContactAdditionalInfo.
ZTContactAdditionalInfoPreferences, subscription status, and custom properties for a contact.
ZTContactSubscriptionStatusEnum of subscription states (new, active, inactive, none).
ZTLocationLatitude/longitude plus foreground/background flag attached to events.

See Contact Management.

Events

SymbolDescription
ZetaClient.shared.eventEvent tracking namespace.
trackScreenName(screen:deeplink:properties:)Track screen navigation.
send(name:properties:)Send a custom event.

See Contact Management.

Push notifications

SymbolDescription
ZetaClient.shared.pushPush notification namespace.
ZTDeeplinkDelegateDelegate 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

SymbolDescription
ZTNotificationServiceRich 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.

See Push Notifications / NSE.

In-App Messaging

SymbolDescription
ZetaClient.shared.inAppIn-app messaging namespace (start() / stop()).
ZTInAppMessageThe message model passed to lifecycle delegate callbacks.
ZTInAppMessageDelegateDelegate for willAppear / didAppear / onClicked / onDismissed.
ZTInAppMessageFormDataModelData returned by in-app email collection forms.

See In-App Messaging.

App Inbox

SymbolDescription
ZTAppInboxManagableProtocol exposed via ZetaClient.shared.inbox.
ZTAppInboxMessageA 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.
ZTAppInboxMessageStatusRead / unread / deleted state.
ZTAppInboxMessageStatusHelperConverts between ZTAppInboxMessageStatus and its string representation.
ZTCtaActionA call-to-action button attached to an inbox message.

See App Inbox.

Logging

SymbolDescription
ZTLoggerStatic namespace for all logging APIs.
ZTLogLevelEnum of log severities (verbose, debug, info, warning, error, none).
ZTLogPrivacyEnum 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.