Campaigns

SyneriseSource

iOS SDK Android SDK React Native SDK Flutter SDK
Introduced in: 5.0.0 6.0.0 0.18.0 0.8.0
Declared In:
Headers/SNRSyneriseSource.h

Declaration:

enum SyneriseSource: Int {
    simplePush,
    inAppMessage
}
typedef NS_ENUM(NSInteger, SNRSyneriseSource) {
    SNRSyneriseActivitySimplePush,
    SNRSyneriseActivityInAppMessage
}


NotificationInfo

Declared In:
Headers/SNRNotificationInfo.h

Inherits From:
BaseModel

Declaration:

class NotificationInfo: BaseModel
@interface SNRNotificationInfo : SNRBaseModel

Properties:

Property Type Optional Description
campaignHashId String no Identifier of the notification campaign.
campaignTitle String no Identifier of the notification title.
payload [AnyHashable: Any] yes Payload of the notification.

All properties are read-only.



PushNotificationsRegistrationOrigin

Declared In:
Headers/SNRSynerise.h

Declaration:

enum PushNotificationsRegistrationOrigin: Int {
    .appStarted,
    .clientContextChange,
    .securityReason,
    .periodicJob
}
typedef NS_ENUM(NSUInteger, SNRPushNotificationsRegistrationOrigin) {
    SNRPushNotificationsRegistrationOriginAppStarted,
    SNRPushNotificationsRegistrationOriginClientContextChange,
    SNRPushNotificationsRegistrationOriginSecurityReason,
    SNRPushNotificationsRegistrationOriginPeriodicJob
}


InAppMessageData

Model representing an in-app message data.

This is a read-only class and it is not meant to be instantiated directly.

Declared In:
Headers/SNRInAppMessageData.h

Inherits From:
BaseModel

Declaration:

class InAppMessageData: BaseModel
@interface SNRInAppMessageData : SNRBaseModel

Properties:

Property Type Optional Description
campaignHash String no Identifier of the in-app message campaign.
variantIdentifier String no Identifier of the in-app message campaign variant.
additionalParameters [AnyHashable: Any] yes Parameters additionally provided by the campaign.
isTest Bool no Specifies if the object is from a test campaign.

All properties are read-only.



SyneriseMethod

Enum with a list of SDK methods that can be called from JavaScript in an in-app.

See Using in-app template builder

Deprecated symbols

SyneriseActivity

iOS SDK Android SDK React Native SDK Flutter SDK
Deprecated in: 5.0.0 n/a n/a n/a
Declared In:
Headers/SNRSyneriseActivity.h

Declaration:

enum SyneriseActivity: Int {
    simplePush,
    banner,
    walkthrough,
    inAppMessage
}
typedef NS_ENUM(NSInteger, SNRSyneriseActivity) {
    SNRSyneriseActivitySimplePush,
    SNRSyneriseActivityBanner,
    SNRSyneriseActivityWalkthrough,
    SNRSyneriseActivityInAppMessage
}


SyneriseActivityAction

iOS SDK Android SDK React Native SDK Flutter SDK
Deprecated in: 5.0.0 n/a n/a n/a
Declared In:
Headers/SNRSynerise.h

Declaration:

enum SyneriseActivityAction: Int {
    none,
    hide
}
typedef NS_ENUM(NSInteger, SNRSyneriseActivityAction) {
    SNRSyneriseActivityActionNone,
    SNRSyneriseActivityActionHide
}

Canonical URL: https://hub.synerise.com/developers/mobile-sdk/class-reference/ios/campaigns