Class TKTokenWatcher

  • All Implemented Interfaces:
    NSObject

    public class TKTokenWatcher
    extends NSObject
    • Constructor Detail

      • TKTokenWatcher

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • addRemovalHandlerForTokenID

        public void addRemovalHandlerForTokenID​(TKTokenWatcher.Block_addRemovalHandlerForTokenID removalHandler,
                                                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 java.lang.Object allocWithZone​(org.moe.natj.general.ptr.VoidPtr zone)
      • automaticallyNotifiesObserversForKey

        public static boolean automaticallyNotifiesObserversForKey​(java.lang.String key)
      • cancelPreviousPerformRequestsWithTarget

        public static void cancelPreviousPerformRequestsWithTarget​(java.lang.Object aTarget)
      • cancelPreviousPerformRequestsWithTargetSelectorObject

        public static void cancelPreviousPerformRequestsWithTargetSelectorObject​(java.lang.Object aTarget,
                                                                                 org.moe.natj.objc.SEL aSelector,
                                                                                 java.lang.Object anArgument)
      • classFallbacksForKeyedArchiver

        public static NSArray<java.lang.String> classFallbacksForKeyedArchiver()
      • classForKeyedUnarchiver

        public static 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

        public TKTokenWatcher initWithInsertionHandler​(TKTokenWatcher.Block_initWithInsertionHandler insertionHandler)
        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
      • 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

        public static NSSet<java.lang.String> keyPathsForValuesAffectingValueForKey​(java.lang.String key)
      • new_objc

        public static java.lang.Object new_objc()
      • 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​(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
      • setVersion_static

        public static void setVersion_static​(long aVersion)
      • superclass_static

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

        public 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()