Class HMCharacteristic

All Implemented Interfaces:
NSObjectProtocol, ObjCProtocol

public class HMCharacteristic
extends NSObject
  • Constructor Details

    • HMCharacteristic

      public HMCharacteristic()
    • HMCharacteristic

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

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

    • getCharacteristicType

      public HMCharacteristicType getCharacteristicType()
    • getLocalizedDescription

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

      public HMService getService()
    • getProperties

      public List<HMCharacteristicProperty> getProperties()
    • getMetadata

      public HMCharacteristicMetadata getMetadata()
    • getValue

      public NSObject getValue()
    • isNotificationEnabled

      public boolean isNotificationEnabled()
    • getUniqueIdentifier

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

      public void writeValue​(NSObject value, VoidBlock1<NSError> completion)
    • readValue

      public void readValue​(VoidBlock1<NSError> completion)
    • enableNotification

      public void enableNotification​(boolean enable, VoidBlock1<NSError> completion)
    • updateAuthorizationData

      public void updateAuthorizationData​(NSData data, VoidBlock1<NSError> completion)