Class BGTask

    • Constructor Detail

      • BGTask

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • alloc

        public static BGTask alloc()
      • allocWithZone

        public static BGTask 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()
      • expirationHandler

        @Nullable
        public @Nullable BGTask.Block_expirationHandler_ret expirationHandler()
        A handler called shortly before the task’s background time expires. The time allocated by the system for expiration handlers doesn’t vary with the number of background tasks. All expiration handlers must complete before the allocated time. Not setting an expiration handler results in the system marking your task as complete and unsuccessful instead of sending a warning. The manager sets the value `expirationHandler` to `nil` after the handler completes. - Parameters: - expirationHandler: The expiration handler takes no arguments and has no return value. Use the handler to cancel any ongoing work and to do any required cleanup in as short a time as possible. The handler may be called before the background process uses the full amount of its allocated time.
      • hash_static

        public static long hash_static()
      • identifier

        @NotNull
        public @NotNull java.lang.String identifier()
        The string identifier of the task. The identifier is the same as the one used to register the launch handler in ``BGTaskScheduler/registerForTaskWithIdentifier:usingQueue:launchHandler:``.
      • 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)
      • new_objc

        public static BGTask new_objc()
      • resolveClassMethod

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

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

        public void setExpirationHandler​(@Nullable
                                         @Nullable BGTask.Block_setExpirationHandler value)
        A handler called shortly before the task’s background time expires. The time allocated by the system for expiration handlers doesn’t vary with the number of background tasks. All expiration handlers must complete before the allocated time. Not setting an expiration handler results in the system marking your task as complete and unsuccessful instead of sending a warning. The manager sets the value `expirationHandler` to `nil` after the handler completes. - Parameters: - expirationHandler: The expiration handler takes no arguments and has no return value. Use the handler to cancel any ongoing work and to do any required cleanup in as short a time as possible. The handler may be called before the background process uses the full amount of its allocated time.
      • setTaskCompletedWithSuccess

        public void setTaskCompletedWithSuccess​(boolean success)
        Informs the background task scheduler that the task is complete. Not calling ``BGTask/setTaskCompletedWithSuccess:`` before the time for the task expires may result in the system killing your app. You can reschedule an unsuccessful required task. - Important: If you don’t set an expiration handler, the system will mark your task as complete and unsuccessful instead of sending a warning. - Parameters: - success: A `Boolean` indicating if the task completed successfully or not.
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public static long version_static()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.