UnbluNotificationInterceptor
public protocol UnbluNotificationInterceptor
Defines an object that can intercept and interact with Unblu related notifications
-
Transforms a given
UnbluLocalNotification
into 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
unbluLocalNotification
The
UnbluLocalNotification
Unblu intends to use to build aUNNotificationRequest
to schedule a local notification.Return Value
An
UnbluLocalNotification
that Unblu will use to build aUNNotificationRequest
to schedule a local notification. Returning nil here will stop Unblu from scheduling a notification.