Class UNMutableNotificationContent

    • Constructor Detail

      • UNMutableNotificationContent

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • body

        @NotNull
        public @NotNull java.lang.String body()
        The body of the notification. Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
        Overrides:
        body in class UNNotificationContent
      • 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.
        Overrides:
        categoryIdentifier in class UNNotificationContent
      • launchImageName

        @NotNull
        public @NotNull java.lang.String launchImageName()
        The launch image that will be used when the app is opened from the notification.
        Overrides:
        launchImageName in class UNNotificationContent
      • setBadge

        public void setBadge​(@Nullable
                             @Nullable NSNumber value)
        The application badge number. nil means no change. 0 to hide.
      • setBody

        public void setBody​(@NotNull
                            @NotNull java.lang.String value)
        The body of the notification. Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
      • setCategoryIdentifier

        public void setCategoryIdentifier​(@NotNull
                                          @NotNull java.lang.String value)
        The identifier for a registered UNNotificationCategory that will be used to determine the appropriate actions to display for the notification.
      • setLaunchImageName

        public void setLaunchImageName​(@NotNull
                                       @NotNull java.lang.String value)
        The launch image that will be used when the app is opened from the notification.
      • setSound

        public void setSound​(@Nullable
                             @Nullable UNNotificationSound value)
        The sound that will be played for the notification.
      • setSubtitle

        public void setSubtitle​(@NotNull
                                @NotNull java.lang.String value)
        The subtitle of the notification. Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
      • setThreadIdentifier

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

        public void setTitle​(@NotNull
                             @NotNull java.lang.String value)
        The title of the notification. Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
      • setUserInfo

        public void setUserInfo​(@NotNull
                                @NotNull NSDictionary<?,​?> value)
        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.
      • subtitle

        @NotNull
        public @NotNull java.lang.String subtitle()
        The subtitle of the notification. Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
        Overrides:
        subtitle in class UNNotificationContent
      • _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
        Overrides:
        _supportsSecureCoding in class UNNotificationContent
      • 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.
        Overrides:
        threadIdentifier in class UNNotificationContent
      • title

        @NotNull
        public @NotNull java.lang.String title()
        The title of the notification. Use -[NSString localizedUserNotificationStringForKey:arguments:] to provide a string that will be localized at the time that the notification is presented.
        Overrides:
        title in class UNNotificationContent
      • 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.
        Overrides:
        userInfo in class UNNotificationContent
      • setSummaryArgument

        @Deprecated
        public void setSummaryArgument​(@NotNull
                                       @NotNull java.lang.String value)
        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
      • setSummaryArgumentCount

        @Deprecated
        public void setSummaryArgumentCount​(long value)
        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
      • setTargetContentIdentifier

        public void setTargetContentIdentifier​(@Nullable
                                               @Nullable java.lang.String value)
        default nil API-Since: 13.0
      • 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
        Overrides:
        summaryArgument in class UNNotificationContent
      • 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
        Overrides:
        summaryArgumentCount in class UNNotificationContent
      • interruptionLevel

        public long interruptionLevel()
        The interruption level determines the degree of interruption associated with the notification API-Since: 15.0
        Overrides:
        interruptionLevel in class UNNotificationContent
      • 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
        Overrides:
        relevanceScore in class UNNotificationContent
      • setInterruptionLevel

        public void setInterruptionLevel​(long value)
        The interruption level determines the degree of interruption associated with the notification API-Since: 15.0
      • setRelevanceScore

        public void setRelevanceScore​(double value)
        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
      • setFilterCriteria

        public void setFilterCriteria​(@Nullable
                                      @Nullable java.lang.String value)
        default nil API-Since: 16.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.