Class UNNotificationContent

All Implemented Interfaces:
NSCoding, NSObjectProtocol, NSSecureCoding, ObjCProtocol
Direct Known Subclasses:
UNMutableNotificationContent

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

    • UNNotificationContent

      public UNNotificationContent()
    • UNNotificationContent

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

      protected UNNotificationContent​(NSObject.SkipInit skipInit)
    • UNNotificationContent

      public UNNotificationContent​(NSCoder coder)
  • Method Details

    • getAttachments

      public NSArray<UNNotificationAttachment> getAttachments()
    • getBadge

      public NSNumber getBadge()
    • getBody

      public String getBody()
    • getCategoryIdentifier

      public String getCategoryIdentifier()
    • getLaunchImageName

      public String getLaunchImageName()
    • getSound

      public UNNotificationSound getSound()
    • getSubtitle

      public String getSubtitle()
    • getThreadIdentifier

      public String getThreadIdentifier()
    • getTitle

      public String getTitle()
    • getUserInfo

      public NSDictionary<?,​?> getUserInfo()
    • getSummaryArgument

      @Deprecated public String getSummaryArgument()
      Deprecated.
      Deprecated in iOS 15.0. summaryArgument is ignored
      Since:
      Available in iOS 12.0 and later.
    • getSummaryArgumentCount

      @Deprecated public long getSummaryArgumentCount()
      Deprecated.
      Deprecated in iOS 15.0. summaryArgumentCount is ignored
      Since:
      Available in iOS 12.0 and later.
    • getTargetContentIdentifier

      public String getTargetContentIdentifier()
      Since:
      Available in iOS 13.0 and later.
    • getInterruptionLevel

      public UNNotificationInterruptionLevel getInterruptionLevel()
      Since:
      Available in iOS 15.0 and later.
    • getRelevanceScore

      public double getRelevanceScore()
      Since:
      Available in iOS 15.0 and later.
    • supportsSecureCoding

      public static boolean supportsSecureCoding()
    • contentByUpdating

      public UNNotificationContent contentByUpdating​(UNNotificationContentProviding provider, NSError.NSErrorPtr outError)
      Since:
      Available in iOS 15.0 and later.
    • encode

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

      protected long init​(NSCoder coder)