Class UNNotificationContent

    • Constructor Detail

      • UNNotificationContent

        protected UNNotificationContent​(org.moe.natj.general.Pointer peer)
    • Method Detail

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UNNotificationContent allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(@NotNull
                                                                   @NotNull java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(@NotNull
                                                                   @NotNull java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(@NotNull
                                                                                 @NotNull java.lang.Object aTarget,
                                                                                 @NotNull
                                                                                 @NotNull org.moe.natj.objc.SEL aSelector,
                                                                                 @Nullable
                                                                                 @Nullable java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        @NotNull
        public static @NotNull NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        @NotNull
        public static @NotNull org.moe.natj.objc.Class classForKeyedUnarchiver()
      • debugDescription_static

        public static java.lang.String debugDescription_static()
      • description_static

        public static java.lang.String description_static()
      • hash_static

        public static long hash_static()
      • instanceMethodSignatureForSelector

        public static NSMethodSignature instanceMethodSignatureForSelector​(org.moe.natj.objc.SEL aSelector)
      • instancesRespondToSelector

        public static boolean instancesRespondToSelector​(org.moe.natj.objc.SEL aSelector)
      • isSubclassOfClass

        public static boolean isSubclassOfClass​(org.moe.natj.objc.Class aClass)
      • keyPathsForValuesAffectingValueForKey

        @NotNull
        public static @NotNull NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(@NotNull
                                                                                             @NotNull java.lang.String key)
      • resolveClassMethod

        public static boolean resolveClassMethod​(org.moe.natj.objc.SEL sel)
      • resolveInstanceMethod

        public static boolean resolveInstanceMethod​(org.moe.natj.objc.SEL sel)
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

        public static org.moe.natj.objc.Class superclass_static()
      • supportsSecureCoding

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • badge

        @Nullable
        public @Nullable NSNumber badge()
        The application badge number.
      • body

        @NotNull
        public @NotNull java.lang.String body()
        The body of the notification.
      • categoryIdentifier

        @NotNull
        public @NotNull java.lang.String categoryIdentifier()
        The identifier for a registered UNNotificationCategory that will be used to determine the appropriate actions to display for the notification.
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • launchImageName

        @NotNull
        public @NotNull java.lang.String launchImageName()
        The launch image that will be used when the app is opened from the notification.
      • mutableCopyWithZone

        @NotNull
        public @NotNull java.lang.Object mutableCopyWithZone​(@Nullable
                                                             @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        mutableCopyWithZone in interface NSMutableCopying
      • sound

        @Nullable
        public @Nullable UNNotificationSound sound()
        The sound that will be played for the notification.
      • subtitle

        @NotNull
        public @NotNull java.lang.String subtitle()
        The subtitle of the notification.
      • _supportsSecureCoding

        public boolean _supportsSecureCoding()
        Description copied from interface: NSSecureCoding
        This property must return YES on all classes that allow secure coding. Subclasses of classes that adopt NSSecureCoding and override initWithCoder: must also override this method and return YES. The Secure Coding Guide should be consulted when writing methods that decode data.
        Specified by:
        _supportsSecureCoding in interface NSSecureCoding
      • threadIdentifier

        @NotNull
        public @NotNull java.lang.String threadIdentifier()
        The unique identifier for the thread or conversation related to this notification request. It will be used to visually group notifications together.
      • title

        @NotNull
        public @NotNull java.lang.String title()
        The title of the notification.
      • userInfo

        @NotNull
        public @NotNull NSDictionary<?,​?> userInfo()
        Apps can set the userInfo for locally scheduled notification requests. The contents of the push payload will be set as the userInfo for remote notifications.
      • summaryArgument

        @NotNull
        @Deprecated
        public @NotNull java.lang.String summaryArgument()
        Deprecated.
        The argument to be inserted in the summary for this notification. API-Since: 12.0 Deprecated-Since: 15.0 Deprecated-Message: summaryArgument is ignored
      • summaryArgumentCount

        @Deprecated
        public long summaryArgumentCount()
        Deprecated.
        A number that indicates how many items in the summary are represented in the summary. For example if a podcast app sends one notification for 3 new episodes in a show, the argument should be the name of the show and the count should be 3. Default is 1 and cannot be 0. API-Since: 12.0 Deprecated-Since: 15.0 Deprecated-Message: summaryArgumentCount is ignored
      • targetContentIdentifier

        @Nullable
        public @Nullable java.lang.String targetContentIdentifier()
        default nil API-Since: 13.0
      • contentByUpdatingWithProviderError

        @Nullable
        public @Nullable UNNotificationContent contentByUpdatingWithProviderError​(@NotNull
                                                                                  @NotNull UNNotificationContentProviding provider,
                                                                                  @Nullable
                                                                                  @Nullable org.moe.natj.general.ptr.Ptr<NSError> outError)
        Contextualizes your UNNotificationContent object with other Apple SDK objects conforming to UNNotificationContentProviding. This will specialize the notification and decorate its look and behavior accordingly. For example, the notification will be treated as a message with an avatar and be promoted to the top of notification center if the object passed in is a valid INSendMessageIntent. This throws an error with a UNErrorCode found in UNError.h if the UNNotificationContentProviding object is invalid. A valid UNNotificationContent result should not be mutated and be passed directly to UNUserNotificationCenter. This should be called in the UNNotificationServiceExtension in didReceiveNotificationRequest:withContentHandler: and the returned UNNotificationContent should be passed to the contentHandler for incoming push notifications. API-Since: 15.0
      • interruptionLevel

        public long interruptionLevel()
        The interruption level determines the degree of interruption associated with the notification API-Since: 15.0
      • relevanceScore

        public double relevanceScore()
        Relevance score determines the sorting for the notification across app notifications. The expected range is between 0.0f and 1.0f. API-Since: 15.0
      • filterCriteria

        @Nullable
        public @Nullable java.lang.String filterCriteria()
        API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.