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

SNRSyneriseActivity
SNRSyneriseActivityAction

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.

func snr_registerForPushNotificationsIsNeeded() -> Void

Note: You should invoke the [SNRClient registerForPush:success:failure:] method again.

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

func snr_handledAction(url: URL) -> Void

Parameter Type Description
url NSURL URL address value from the activity.
Note: This method is invoked when the SNR_handledActionWithURL:activity:completionHandler: method is not implemented.

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 SNRSyneriseActivity Identifies Synerise campaign activity (SNRSyneriseActivity).
completionHandler SNRSyneriseActivityAction A block/closure that should be invoked with SNRSyneriseActivityAction parameters and a completion block to execute.

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

func snr_handledAction(deepLink: String) -> Void

Parameter Type Description
deeplink String Literal text value from the activity.
Note: This method is invoked when the SNR_handledActionWithDeepLink:activity:completionHandler: method is not implemented.

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 SNRSyneriseActivity Identifies Synerise campaign activity (SNRSyneriseActivity).
completionHandler SNRSyneriseActivityAction A block/closure that should be invoked with parameters: SNRSyneriseActivityAction 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.