One Logo Pool Ball
HomeKit · IOS API REFERENCE

HMService

class · iOS 8.0+ · SDK 27.1

class HMService

Members (14)

init · iOS 8.0+ · Deprecated in iOS 8.0

init

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

updateAssociatedServiceType

TypeScript
updateAssociatedServiceType(serviceType: (string) | null, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func updateAssociatedServiceType(_ serviceType: String?) async throws
method · iOS 8.0+

updateName

TypeScript
updateName(name: string, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func updateName(_ name: String) async throws
get · iOS 8.0+

accessory

TypeScript
get accessory(): (HMAccessory) | null
Swift declaration
weak var accessory: HMAccessory? { get }
get · iOS 8.0+

associatedServiceType

TypeScript
get associatedServiceType(): (string) | null
Swift declaration
var associatedServiceType: String? { get }
get · iOS 8.0+

characteristics

TypeScript
get characteristics(): Array<HMCharacteristic>
Swift declaration
var characteristics: [HMCharacteristic] { get }
get · iOS 10.0+

linkedServices

TypeScript
get linkedServices(): (Array<HMService>) | null
Swift declaration
var linkedServices: [HMService]? { get }
get · iOS 9.0+

localizedDescription

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

name

TypeScript
get name(): string
Swift declaration
var name: String { get }
get · iOS 10.0+

isPrimaryService

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

serviceType

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

uniqueIdentifier

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

isUserInteractive

TypeScript
get isUserInteractive(): boolean
Swift declaration
var isUserInteractive: Bool { get }
get · iOS 18.0+

matterEndpointID

TypeScript
get matterEndpointID(): (number) | null
Swift declaration
var matterEndpointID: UInt16? { get }

Skipped declarations

No declarations were skipped in this snapshot.

All HomeKit types →