Class HMService

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class HMService
extends NSObject
  • Constructor Details

    • HMService

      public HMService()
    • HMService

      protected HMService​(NSObject.Handle h, long handle)
    • HMService

      protected HMService​(NSObject.SkipInit skipInit)
  • Method Details

    • getAccessory

      public HMAccessory getAccessory()
    • getServiceType

      public HMServiceType getServiceType()
    • getLocalizedDescription

      public String getLocalizedDescription()
      Since:
      Available in iOS 9.0 and later.
    • getName

      public String getName()
    • getAssociatedServiceType

      public HMServiceType getAssociatedServiceType()
    • getCharacteristics

      public NSArray<HMCharacteristic> getCharacteristics()
    • getUniqueIdentifier

      public NSUUID getUniqueIdentifier()
      Since:
      Available in iOS 9.0 and later.
    • isUserInteractive

      public boolean isUserInteractive()
      Since:
      Available in iOS 9.0 and later.
    • isPrimaryService

      public boolean isPrimaryService()
      Since:
      Available in iOS 10.0 and later.
    • getLinkedServices

      public NSArray<HMService> getLinkedServices()
      Since:
      Available in iOS 10.0 and later.
    • updateName

      public void updateName​(String name, VoidBlock1<NSError> completion)
    • updateAssociatedServiceType

      public void updateAssociatedServiceType​(HMServiceType serviceType, VoidBlock1<NSError> completion)