In-App Message Delegate

A delegate to handle events from in-app message campaigns.

Note: In-App Message Delegate is available since SDK 4.6.0 version.

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.
😕

We are sorry to hear that

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

😉

Awesome!

Thank you for helping improve out documentation. If you need help or have any questions, please consider contacting support.

Close modal icon Placeholder alt for modal to satisfy link checker