Package apple.homekit

Class HMAccessoryBrowser

  • All Implemented Interfaces:
    NSObject

    public class HMAccessoryBrowser
    extends NSObject
    This class is used to discover new accessories in the home that have never been paired with and therefore not part of the home.
    • Constructor Detail

      • HMAccessoryBrowser

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

      • accessInstanceVariablesDirectly

        public static boolean accessInstanceVariablesDirectly()
      • 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()
      • 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)
      • 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()
      • delegate

        public HMAccessoryBrowserDelegate delegate()
        Delegate that receives updates on the state of the accessories discovered.
      • discoveredAccessories

        public NSArray<? extends HMAccessory> discoveredAccessories()
        This is the array of HMAccessory objects that represents new accessories that were discovered as part of a search session. This array is not updated when a search session is not in progress.
      • setDelegate_unsafe

        public void setDelegate_unsafe​(HMAccessoryBrowserDelegate value)
        Delegate that receives updates on the state of the accessories discovered.
      • setDelegate

        public void setDelegate​(HMAccessoryBrowserDelegate value)
        Delegate that receives updates on the state of the accessories discovered.
      • startSearchingForNewAccessories

        public void startSearchingForNewAccessories()
        Starts searching for accessories that are not associated to any home. If any accessories are discovered, updates are sent to the delegate. This will scan for the following types of accessories: Accessories supporting HomeKit Wireless Accessory Configuration profile Accessories supporting HomeKit Accessory Protocol and are already on the same infrastructure IP network Accessories supporting HomeKit Accessory Protocol on Bluetooth LE transport The array of discovered accessories will be updated when this method is called, so applications should clear and reload any stored copies of that array or previous new accessory objects.
      • stopSearchingForNewAccessories

        public void stopSearchingForNewAccessories()
        Stops searching for new accessories. After this method is called, updates will not be sent to the delegate if new accessories are found or removed. Scanning may continue for system reasons or if other delegates are still in active searching sessions. The contents of the array of discovered accessories will not be updated until startSearchingForNewAccessories is called.