Package apple.homekit

Class HMHomeManager

  • All Implemented Interfaces:
    NSObject

    public class HMHomeManager
    extends NSObject
    Manages collection of one or more homes. This class is responsible for managing a collection of homes.
    • Constructor Detail

      • HMHomeManager

        protected HMHomeManager​(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()
      • addHomeWithNameCompletionHandler

        public void addHomeWithNameCompletionHandler​(java.lang.String homeName,
                                                     HMHomeManager.Block_addHomeWithNameCompletionHandler completion)
        Adds a new home to the collection.
        Parameters:
        homeName - Name of the home to create and add to the collection.
        completion - Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success.
      • delegate

        public HMHomeManagerDelegate delegate()
        Delegate that receives updates on the collection of homes.
      • homes

        public NSArray<? extends HMHome> homes()
        Array of HMHome objects that represents the homes associated with the home manager. When a new home manager is created, this array is inialized as an empty array. It is not guaranteed to be filled with the list of homes, represented as HMHome objects, until the homeManagerDidUpdateHomes: delegate method has been invoked.
      • primaryHome

        public HMHome primaryHome()
        The primary home for this collection.
      • removeHomeCompletionHandler

        public void removeHomeCompletionHandler​(HMHome home,
                                                HMHomeManager.Block_removeHomeCompletionHandler completion)
        Removes an existing home from the collection.
        Parameters:
        home - Home object that needs to be removed from the collection.
        completion - Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success.
      • setDelegate_unsafe

        public void setDelegate_unsafe​(HMHomeManagerDelegate value)
        Delegate that receives updates on the collection of homes.
      • setDelegate

        public void setDelegate​(HMHomeManagerDelegate value)
        Delegate that receives updates on the collection of homes.
      • updatePrimaryHomeCompletionHandler

        public void updatePrimaryHomeCompletionHandler​(HMHome home,
                                                       HMHomeManager.Block_updatePrimaryHomeCompletionHandler completion)
        This method is used to change the primary home.
        Parameters:
        home - New primary home.
        completion - Block that is invoked once the request is processed. The NSError provides more information on the status of the request, error will be nil on success.
      • authorizationStatus

        public long authorizationStatus()
        The current authorization status of the application. The authorization is managed by the system, there is no need to explicitly request authorization.