PushNotificationEvent
enum PushNotificationEvent : Hashable, @unchecked Sendable
Wraps a push-notification related event.
-
The device token registration result changed.
Declaration
Swift
case didUpdateToken(_: TokenResult)Parameters
result.token(Data)on success or.failed. -
A notification is about to be presented while the app is in the foreground.
Declaration
Swift
case willPresent(_: UNNotification, _: any MoEngageUNUserNotificationCenter & Hashable)Parameters
notificationThe notification to present.
centerThe notification center delivering the event.
-
The user responded to a delivered notification.
Declaration
Swift
case didReceive(_: UNNotificationResponse, _: any MoEngageUNUserNotificationCenter & Hashable)Parameters
responseThe user’s response.
centerThe notification center delivering the event.
-
The result of a device-token registration attempt.
See moreDeclaration
Swift
enum TokenResult : Hashable, Sendable
-
Declaration
Swift
public static func == (lhs: `Self`, rhs: `Self`) -> Bool -
Declaration
Swift
public func hash(into hasher: inout Hasher)