UnbluNotificationInterceptor
protocol UnbluNotificationInterceptor
Defines an object that can intercept and interact with Unblu related notifications
-
Transforms a given
UnbluLocalNotificationinto another'UnbluLocalNotification.Unblu calls this function when it is about to display a local native notification with the properties defined in the given
UnbluLocalNotification.You can modify what Unblu sends to iOS for the local notification by returning a different instance, or alternatively return the same one to display it as originally intended.
Declaration
Swift
func transform(unbluLocalNotification: UnbluLocalNotification) -> UnbluLocalNotification?Parameters
unbluLocalNotificationThe
UnbluLocalNotificationUnblu intends to use to build aUNNotificationRequestto schedule a local notification.Return Value
An
UnbluLocalNotificationthat Unblu will use to build aUNNotificationRequestto schedule a local notification. Returning nil here will stop Unblu from scheduling a notification.