Class UNNotificationSound

    • Constructor Detail

      • UNNotificationSound

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • allocWithZone

        public static UNNotificationSound 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()
      • defaultSound

        @NotNull
        public static @NotNull UNNotificationSound defaultSound()
        The default sound used for notifications.
      • 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)
      • soundNamed

        public static UNNotificationSound soundNamed​(@NotNull
                                                     @NotNull java.lang.String name)
        The sound file to be played for the notification. The sound must be in the Library/Sounds folder of the app's data container or the Library/Sounds folder of an app group data container. If the file is not found in a container, the system will look in the app's bundle.
      • superclass_static

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

        public static boolean supportsSecureCoding()
      • version_static

        public static long version_static()
      • copyWithZone

        @NotNull
        public @NotNull java.lang.Object copyWithZone​(@Nullable
                                                      @Nullable org.moe.natj.general.ptr.VoidPtr zone)
        Specified by:
        copyWithZone in interface NSCopying
      • _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
      • criticalSoundNamed

        @NotNull
        public static @NotNull UNNotificationSound criticalSoundNamed​(@NotNull
                                                                      @NotNull java.lang.String name)
        The name of a sound file to be played for an critical alert. Critical alerts will bypass the mute switch and Do Not Disturb. The sound file must be contained in the app’s bundle or in the Library/Sounds folder of the app’s data container. If files exist in both locations then the file in the app’s data container will be preferred. API-Since: 12.0
      • criticalSoundNamedWithAudioVolume

        @NotNull
        public static @NotNull UNNotificationSound criticalSoundNamedWithAudioVolume​(@NotNull
                                                                                     @NotNull java.lang.String name,
                                                                                     float volume)
        The name of a sound file to be played for an critical alert with a custom audio volume level. Critical alerts will bypass the mute switch and Do Not Disturb. The sound file must be contained in the app’s bundle or in the Library/Sounds folder of the app’s data container. If files exist in both locations then the file in the app’s data container will be preferred. The audio volume is expected to be between 0.0f and 1.0f. API-Since: 12.0
      • defaultCriticalSound

        @NotNull
        public static @NotNull UNNotificationSound defaultCriticalSound()
        The default sound used for critical alerts. Critical alerts will bypass the mute switch and Do Not Disturb. API-Since: 12.0
      • defaultCriticalSoundWithAudioVolume

        @NotNull
        public static @NotNull UNNotificationSound defaultCriticalSoundWithAudioVolume​(float volume)
        The default sound used for critical alerts with a custom audio volume level. Critical alerts will bypass the mute switch and Do Not Disturb. The audio volume is expected to be between 0.0f and 1.0f. API-Since: 12.0
      • defaultRingtoneSound

        @NotNull
        public static @NotNull UNNotificationSound defaultRingtoneSound()
        The default sound used for incoming call notifications. Plays the ringtone and haptics specified in Settings for a 30 second duration. The parent UNNotificationContent object must be created in the notification service extension via -[UNNotificationContent contentByUpdatingWithProvider:error:] where the provider is an INStartCallIntent with a destinationType of INCallDestinationTypeNormal. Please use CallKit instead of UserNotifications for this use case when available. API-Since: 15.2
      • ringtoneSoundNamed

        @NotNull
        public static @NotNull UNNotificationSound ringtoneSoundNamed​(@NotNull
                                                                      @NotNull java.lang.String name)
        The sound file to be played for an incoming call notification. The sound must be in the Library/Sounds folder of the app's data container or the Library/Sounds folder of an app group data container. If the file is not found in a container, the system will look in the app's bundle. The sound will repeat for a total duration of 30 seconds. The haptics specified in Settings will be played along with the sound. The parent UNNotificationContent object must be created in the notification service extension via -[UNNotificationContent contentByUpdatingWithProvider:error:] where the provider is an INStartCallIntent with a destinationType of INCallDestinationTypeNormal. Please use CallKit instead of UserNotifications for this use case when available. API-Since: 15.2
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.