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

    notification

    The notification to present.

    center

    The notification center delivering the event.

  • The user responded to a delivered notification.

    Declaration

    Swift

    case didReceive(_: UNNotificationResponse, _: any MoEngageUNUserNotificationCenter & Hashable)

    Parameters

    response

    The user’s response.

    center

    The notification center delivering the event.

Event.PushNotificationEvent

  • The result of a device-token registration attempt.

    See more

    Declaration

    Swift

    enum TokenResult : Hashable, Sendable

PushNotificationEvent Hashable

  • Declaration

    Swift

    public static func == (lhs: `Self`, rhs: `Self`) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)