One Logo Pool Ball
HomeKit · IOS API REFERENCE

HMCharacteristic

class · iOS 8.0+ · SDK 27.1

class HMCharacteristic

Members (13)

method · iOS 8.0+

enableNotification

TypeScript
enableNotification(enable: boolean, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func enableNotification(_ enable: Bool) async throws
init · iOS 8.0+ · Deprecated in iOS 8.0

init

TypeScript
static init(): HMCharacteristic
Swift declaration
init()
method · iOS 8.0+

readValue

TypeScript
readValue(completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func readValue() async throws
method · iOS 8.0+

updateAuthorizationData

TypeScript
updateAuthorizationData(data: (ArrayBuffer) | null, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func updateAuthorizationData(_ data: Data?) async throws
method · iOS 8.0+

writeValue

TypeScript
writeValue(value: (unknown) | null, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func writeValue(_ value: Any?) async throws
get · iOS 8.0+

characteristicType

TypeScript
get characteristicType(): string
Swift declaration
var characteristicType: String { get }
get · iOS 9.0+

localizedDescription

TypeScript
get localizedDescription(): string
Swift declaration
var localizedDescription: String { get }
get · iOS 8.0+

metadata

TypeScript
get metadata(): (HMCharacteristicMetadata) | null
Swift declaration
var metadata: HMCharacteristicMetadata? { get }
get · iOS 8.0+

isNotificationEnabled

TypeScript
get isNotificationEnabled(): boolean
Swift declaration
var isNotificationEnabled: Bool { get }
get · iOS 8.0+

properties

TypeScript
get properties(): Array<string>
Swift declaration
var properties: [String] { get }
get · iOS 8.0+

service

TypeScript
get service(): (HMService) | null
Swift declaration
weak var service: HMService? { get }
get · iOS 9.0+

uniqueIdentifier

TypeScript
get uniqueIdentifier(): string
Swift declaration
var uniqueIdentifier: UUID { get }
get · iOS 8.0+

value

TypeScript
get value(): (unknown) | null
Swift declaration
var value: Any? { get }

Skipped declarations

No declarations were skipped in this snapshot.

All HomeKit types →