In-App Message Delegate
A delegate to handle events from in-app message campaigns.
Declared In
SNRInjector.h
Declaration
NS_SWIFT_NAME(InjectorInAppMessageDelegate)
@protocol SNRInjectorInAppMessageDelegate
Methods
This method is called after an in-app message is loaded and Synerise SDK asks for permission to show it.
func snr_shouldInAppMessageAppear(data: InAppMessageData) -> Bool
Parameter | Type | Description |
---|---|---|
data | InAppMessageData |
Model representation of the in-app message. |
This method is called after an in-app message appears.
func snr_inAppMessageDidAppear(data: InAppMessageData) -> Void
Parameter | Type | Description |
---|---|---|
data | InAppMessageData |
Model representation of the in-app message. |
This method is called after an in-app message disappears.
func snr_inAppMessageDidDisappear(data: InAppMessageData) -> Void
Parameter | Type | Description |
---|---|---|
data | InAppMessageData |
Model representation of the in-app message. |
This method is called when an in-app message changes its size.
func snr_inAppMessageDidChangeSize(rect: CGRect) -> Void
Parameter | Type | Description |
---|---|---|
data | InAppMessageData |
Model representation of the in-app message. |
This method is called when a individual context (for example a profile ID, an item SKU) for an in-app message is needed.
func snr_inAppMessageContextIsNeeded(data: InAppMessageData) -> [AnyHashable: Any]?
Parameter | Type | Description |
---|---|---|
data | InAppMessageData |
Model representation of the in-app message. |
This method is called when Synerise handles URL action from in-app messages.
func snr_inAppMessageHandledAction(data: InAppMessageData, url: URL) -> Void
Parameter | Type | Description |
---|---|---|
data | InAppMessageData |
Model representation of the in-app message. |
url | URL |
URL address value from the activity. |
This method is called when Synerise handles deeplink action from in-app messages.
func snr_inAppMessageHandledAction(data: InAppMessageData, deeplink: String) -> Void
Parameter | Type | Description |
---|---|---|
data | InAppMessageData |
Model representation of the in-app message. |
deeplink | String |
Literal text value from the activity. |
This method is called when a custom action is handled from in-app messages.
func snr_inAppMessageHandledCustomAction(data: InAppMessageData, name: String, parameters: [AnyHashable: Any]) -> Void
Parameter | Type | Description |
---|---|---|
data | InAppMessageData |
Model representation of the in-app message. |
name | String |
Custom action name for identification. |
parameters | [AnyHashable: Any] |
Custom action parameters. |