AirshipNotificationStatus

public struct AirshipNotificationStatus : Sendable, Equatable

Airship push notification status

  • If user notifications are enabled on AirshipPush.

    Declaration

    Swift

    public let isUserNotificationsEnabled: Bool
  • If notifications are either ephemeral or granted and has at least one authorized type.

    Declaration

    Swift

    public let areNotificationsAllowed: Bool
  • If the push feature is enabled on AirshipPrivacyManager.

    Declaration

    Swift

    public let isPushPrivacyFeatureEnabled: Bool
  • If a push token is generated.

    Declaration

    Swift

    public let isPushTokenRegistered: Bool
  • If isUserNotificationsEnabled, isPushPrivacyFeatureEnabled, and areNotificationsAllowed are all true..

    Declaration

    Swift

    public var isUserOptedIn: Bool { get }
  • If isUserOptedIn and isPushTokenRegistered are both true.

    Declaration

    Swift

    public var isOptedIn: Bool { get }