Synerise Delegate

Overview


A delegate to handle actions from the Synerise SDK.

Note: If optional methods are not implemented, Synerise has a default behavior only for the URL action - it’s redirected to a browser.

Declared In

SNRSynerise.h

SyneriseActivity
SyneriseActivityAction

Declaration

NS_SWIFT_NAME(SyneriseDelegate)
@protocol SNRSyneriseDelegate

Methods


This method is called when the Synerise SDK is initialized.

func snr_initialized() -> Void


This method is called when an error occurs while initializing the Synerise SDK.

func snr_initializationError(error: Error) -> Void

Parameter Type Description
error NSError The error that occurred.

This method is called when Synerise needs registration for Push Notifications.

Note: After invoking this method, you must invoke the Client.registerForPush(registrationToken:mobilePushAgreement:success:failure:) method again.
func snr_registerForPushNotificationsIsNeeded() -> Void

This method is called when Synerise handles URL action from campaign activities.

Note: This method is invoked when the snr_handledAction(url:activity:completionHandler:) method is not implemented.
func snr_handledAction(url: URL) -> Void
Parameter Type Description
url NSURL URL address value from the activity.

This method is called when Synerise handles URL action from campaign activities.

func snr_handledAction(url: URL, activity: SyneriseActivity, completionHandler: SyneriseActivityCompletionHandler) -> Void

Parameter Type Description
url NSURL URL address value from the activity.
activity SyneriseActivity Identifies Synerise campaign activity (SyneriseActivity).
completionHandler SyneriseActivityAction A block/closure that should be invoked with SyneriseActivityAction parameters and a completion block to execute.

This method is called when Synerise handles deeplink action from campaign activities.

Note: This method is invoked when the snr_handledAction(deepLink:activity:completionHandler:) method is not implemented.
func snr_handledAction(deepLink: String) -> Void
Parameter Type Description
deeplink String Literal text value from the activity.

This method is called when Synerise handles deeplink action from campaign activities.

func snr_handledAction(deepLink: String, activity: SyneriseActivity, completionHandler: SyneriseActivityCompletionHandler) -> Void

Parameter Type Description
deeplink String Literal text value from activity.
activity SyneriseActivity Identifies Synerise campaign activity (SyneriseActivity).
completionHandler SyneriseActivityAction A block/closure that should be invoked with parameters: SyneriseActivityAction and completion block to execute.
😕

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.