Class TKTokenWatcher

  • All Implemented Interfaces:
    NSObject

    public class TKTokenWatcher
    extends NSObject
    API-Since: 10.0
    • Constructor Detail

      • TKTokenWatcher

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addRemovalHandlerForTokenID

        public void addRemovalHandlerForTokenID​(@NotNull
                                                @NotNull TKTokenWatcher.Block_addRemovalHandlerForTokenID removalHandler,
                                                @NotNull
                                                @NotNull java.lang.String tokenID)
        Add removal watcher for specific tokenID [@disscussion] after removalHandler for a specific tokenID is called the reference to this handler is removed. For one tokenID just one handler can be added, so next call to addRemovalHandler will replace previous handler
        Parameters:
        removalHandler - called when a token is removed
        tokenID - specified tokenID, if tokenID does not exist removal handler is called imediately
      • allocWithZone

        public static TKTokenWatcher 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()
      • initWithInsertionHandler

        @Deprecated
        public TKTokenWatcher initWithInsertionHandler​(@NotNull
                                                       @NotNull TKTokenWatcher.Block_initWithInsertionHandler insertionHandler)
        Deprecated.
        Init watcher with insertion handler [@disscussion] init watcher with insertion handler which is called when a new token arrives
        Parameters:
        insertionHandler - called when a new token is inserted API-Since: 10.0 Deprecated-Since: 11.0
      • 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)
      • setInsertionHandler

        public void setInsertionHandler​(@NotNull
                                        @NotNull TKTokenWatcher.Block_setInsertionHandler insertionHandler)
        Set insertion handler [@disscussion] when an insertion handler is set the TokenWatcher will call this handler when new token appears in the system. TokenWatcher will call the handler also for tokens which was registered in the system before the handler was set.
        Parameters:
        insertionHandler - called when a new token is inserted API-Since: 11.0
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        @NotNull
        public @NotNull NSArray<java.lang.String> tokenIDs()
        Array of currently known TokenIDs in the system. Tokens are identified by instance's names. It is possible to use KVO to be notified about token arrivals and removals.
      • version_static

        public static long version_static()
      • tokenInfoForTokenID

        @Nullable
        public @Nullable TKTokenWatcherTokenInfo tokenInfoForTokenID​(@NotNull
                                                                     @NotNull java.lang.String tokenID)
        Return TokenInfo for specific tokenID
        Parameters:
        tokenID - specified tokenID
        Returns:
        A TokenInfo object, or nil if tokenID does not exist API-Since: 15.0
      • useStoredAccessor

        @Deprecated
        public static boolean useStoredAccessor()
        Deprecated.