Class CLBackgroundActivitySession

  • All Implemented Interfaces:
    NSObject

    public class CLBackgroundActivitySession
    extends NSObject
    API-Since: 17.0
    • Constructor Detail

      • CLBackgroundActivitySession

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • automaticallyNotifiesObserversForKey

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

        public static CLBackgroundActivitySession backgroundActivitySession()
        backgroundActivitySession * Discussion: * Starts a background activity session allowing a When-In-Use * authorized app to receive location updates or monitoring events. Provides * user visibility about the background activity by displaying the Blue * StatusBar/Pill and allowing the navigation back to this app by tapping * the displayed UI. * * Session creation will always yield a session object but it may or may * not be active based on the following circumstances: * * - A session may only be active for an app which has effective authorization. * - A session may only be active for an app which includes Location in its * UIBackgroundModes. * - A new session may only become active while the app is foregrounded and * in direct use. * - An active session may continue when the app enters the background even * if the app stops running. * - An active session may be resumed immediately with this method when the * app is next run, even in the background. * - However, such a session which is not resumed immediately on next run * will end and will need to qualify to become active again if still desired. * * When a session is active, the app remains in-use, so When-In-Use * authorization will remain effective, and both Updater and Monitor * APIs will be available. * Note: the app is responsible for resuming an active session with this * method immediately upon background launch if it wishes the session * to remain active. * * Calling invalidate on the session will terminate it and render it * immediately inactive. API-Since: 17.0
      • 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)
      • invalidate

        public void invalidate()
        invalidate Discussion: Ends the session immediately. Any UI giving visual attestation to this background session will also be terminated. Once the session is invalidated it cannot become active again. API-Since: 17.0
      • 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()
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.
      • version_static

        public static long version_static()