Class UNNotificationSettings

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol

public class UNNotificationSettings
extends NSObject
implements NSSecureCoding
Since:
Available in iOS 10.0 and later.
  • Constructor Details

    • UNNotificationSettings

      protected UNNotificationSettings()
    • UNNotificationSettings

      protected UNNotificationSettings​(NSObject.Handle h, long handle)
    • UNNotificationSettings

      protected UNNotificationSettings​(NSObject.SkipInit skipInit)
    • UNNotificationSettings

      public UNNotificationSettings​(NSCoder coder)
  • Method Details

    • getAuthorizationStatus

      public UNAuthorizationStatus getAuthorizationStatus()
    • getSoundSetting

      public UNNotificationSetting getSoundSetting()
    • getBadgeSetting

      public UNNotificationSetting getBadgeSetting()
    • getAlertSetting

      public UNNotificationSetting getAlertSetting()
    • getNotificationCenterSetting

      public UNNotificationSetting getNotificationCenterSetting()
    • getLockScreenSetting

      public UNNotificationSetting getLockScreenSetting()
    • getCarPlaySetting

      public UNNotificationSetting getCarPlaySetting()
    • getAlertStyle

      public UNAlertStyle getAlertStyle()
    • getShowPreviewsSetting

      public UNShowPreviewsSetting getShowPreviewsSetting()
      Since:
      Available in iOS 11.0 and later.
    • getCriticalAlertSetting

      public UNNotificationSetting getCriticalAlertSetting()
      Since:
      Available in iOS 12.0 and later.
    • providesAppNotificationSettings

      public boolean providesAppNotificationSettings()
      Since:
      Available in iOS 12.0 and later.
    • getAnnouncementSetting

      public UNNotificationSetting getAnnouncementSetting()
      Since:
      Available in iOS 13.0 and later.
    • getTimeSensitiveSetting

      public UNNotificationSetting getTimeSensitiveSetting()
      Since:
      Available in iOS 15.0 and later.
    • getScheduledDeliverySetting

      public UNNotificationSetting getScheduledDeliverySetting()
      Since:
      Available in iOS 15.0 and later.
    • getDirectMessagesSetting

      public UNNotificationSetting getDirectMessagesSetting()
      Since:
      Available in iOS 15.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • encode

      public void encode​(NSCoder coder)
      Specified by:
      encode in interface NSCoding
    • init

      protected long init​(NSCoder coder)