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 the Zeta Android SDK's public API.

On this page

Client & configuration

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

See Getting Started.

User & contacts

SymbolDescription
ZTUserManagerInterface exposed via ZetaClient.user for user operations.
ZTUserUser model built via ZetaClient.user.builder()...submit().
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).

See Contact Management.

Events

SymbolDescription
ZetaClient.eventEvent tracking namespace.
trackScreenName()Track screen navigation.
send()Send a custom event.

See Contact Management.

Push notifications

SymbolDescription
ZTPushPush notification namespace for configuration and callbacks.
ZTNotificationConfigNotification display configuration (smallIcon, color, enableAppLaunch, notificationChannel).
ZTNotificationChannelNotification channel configuration (id, name, description, showBadge, autoCancel, notificationSound).
ZTNotificationInfoNotification payload model. deepLink — the campaign's on-tap destination (deep link or web URL). extra — a Map<String, String> of Additional Values configured in the ZMP campaign builder; use these for custom routing or display logic. localNotificationId — the Android notification ID for dismissal via removeNotification().
ZTPushServiceFirebase Messaging service for receiving push messages.
getNotificationInfo()Retrieve deep link and extra info from a notification intent.
handleMessage()Forward a RemoteMessage to the SDK from a custom push service.
handleMessageMap()Forward push data as Map<String, String> to the SDK. Accepts an optional smallIcon parameter.
trackEvent()Track a notification click event. Accepts ZTNotificationInfo.
removeNotification()Dismiss a notification from the status bar by its local ID and optional tag.
setZtNotificationCallback()Callback for Zeta push notifications.
setNonZtNotificationCallback()Callback for non-Zeta push notifications.
setActionBackgroundCallback()Callback for notification action taps while the app is in the background.

See Push Notifications.

In-App Messaging

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

See In-App Messaging.

App Inbox

SymbolDescription
ZTAppInboxManagerInterface exposed via ZetaClient.inbox.
ZTAppInboxMessageA single inbox entry. Key fields: messageId, title, body, mediaUrl, status, expirationTimestamp, actionList, templateId. additionalData — a Map<String, String> of Additional Values configured in the ZMP campaign builder; use these for custom routing or display logic in your inbox UI (for example, {"category": "promo", "variant": "B"}).
ZTAppInboxMessageStatusRead / unread / deleted state enum.
ZTCtaActionA call-to-action button attached to an inbox message.
ZTExceptionError type surfaced in App Inbox onError callbacks. Contains an error message and optional cause.

See App Inbox.

Logging

SymbolDescription
ZTLoggerStatic namespace for all logging APIs.
ZTLogLevelEnum of log severities (NONE, VERBOSE, DEBUG, INFO, WARNING, ERROR).

See Advanced / Logging.

See also

  • Changelog — complete Added / Changed / Fixed / Removed log for every version.
  • Migration Guide — breaking changes between versions.