addAccessory
TypeScriptaddAccessory(accessory: HMAccessory, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc addAccessory(_ accessory: HMAccessory) async throwsclass · iOS 8.0+ · SDK 27.1
class HMHomeaddAccessory(accessory: HMAccessory, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc addAccessory(_ accessory: HMAccessory) async throwsaddActionSet(actionSetName: string, completion: ((arg0: (HMActionSet) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc addActionSet(named actionSetName: String) async throws -> HMActionSetaddAndSetupAccessoriesCompletionHandler(completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc addAndSetUpAccessories() async throwsaddAndSetupAccessoriesWithCompletionHandler(payload: HMAccessorySetupPayload, completion: ((arg0: (Array<HMAccessory>) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc addAndSetUpAccessories(payload: HMAccessorySetupPayload) async throws -> [HMAccessory]addRoom(roomName: string, completion: ((arg0: (HMRoom) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc addRoom(named roomName: String) async throws -> HMRoomaddServiceGroup(serviceGroupName: string, completion: ((arg0: (HMServiceGroup) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc addServiceGroup(named serviceGroupName: String) async throws -> HMServiceGroupaddTrigger(trigger: HMTrigger, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc addTrigger(_ trigger: HMTrigger) async throwsaddUser(completion: ((arg0: (HMUser) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc addUser(completionHandler completion: @escaping @Sendable (HMUser?, (any Error)?) -> Void)addZone(zoneName: string, completion: ((arg0: (HMZone) | null, arg1: (NativeError) | null) => void)): voidSwift declarationfunc addZone(named zoneName: String) async throws -> HMZoneassignAccessory(accessory: HMAccessory, room: HMRoom, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc assignAccessory(_ accessory: HMAccessory, to room: HMRoom) async throwsbuiltinActionSet(actionSetType: string): (HMActionSet) | nullSwift declarationfunc builtinActionSet(ofType actionSetType: String) -> HMActionSet?executeActionSet(actionSet: HMActionSet, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc executeActionSet(_ actionSet: HMActionSet) async throwshomeAccessControl(user: HMUser): HMHomeAccessControlSwift declarationfunc homeAccessControl(for user: HMUser) -> HMHomeAccessControlmanageUsers(completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc manageUsers() async throwsremoveAccessory(accessory: HMAccessory, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc removeAccessory(_ accessory: HMAccessory) async throwsremoveActionSet(actionSet: HMActionSet, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc removeActionSet(_ actionSet: HMActionSet) async throwsremoveRoom(room: HMRoom, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc removeRoom(_ room: HMRoom) async throwsremoveServiceGroup(group: HMServiceGroup, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc removeServiceGroup(_ group: HMServiceGroup) async throwsremoveTrigger(trigger: HMTrigger, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc removeTrigger(_ trigger: HMTrigger) async throwsremoveUser(user: HMUser, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc removeUser(_ user: HMUser, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)removeZone(zone: HMZone, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc removeZone(_ zone: HMZone) async throwsroomForEntireHome(): HMRoomSwift declarationfunc roomForEntireHome() -> HMRoomservicesWithTypes(serviceTypes: Array<string>): (Array<HMService>) | nullSwift declarationfunc servicesWithTypes(_ serviceTypes: [String]) -> [HMService]?unblockAccessory(accessory: HMAccessory, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc unblockAccessory(_ accessory: HMAccessory) async throwsupdateName(name: string, completion: ((arg0: (NativeError) | null) => void)): voidSwift declarationfunc updateName(_ name: String) async throwsget accessories(): Array<HMAccessory>Swift declarationvar accessories: [HMAccessory] { get }get actionSets(): Array<HMActionSet>Swift declarationvar actionSets: [HMActionSet] { get }get currentUser(): HMUserSwift declarationvar currentUser: HMUser { get }get delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any HMHomeDelegate)? { get set }set delegate(value: (Implements<HMHomeDelegate> | SDKHandle) | null)Swift declarationweak var delegate: (any HMHomeDelegate)? { get set }get homeHubState(): HMHomeHubStateSwift declarationvar homeHubState: HMHomeHubState { get }get matterControllerID(): stringSwift declarationvar matterControllerID: String { get }get matterControllerXPCConnectBlock(): (() => Promise<_Foundation_NSXPCConnection>)Swift declarationvar matterControllerXPCConnectBlock: () -> NSXPCConnection { get }get matterStartupParametersXPCConnectBlock(): (() => Promise<_Foundation_NSXPCConnection>)Swift declarationvar matterStartupParametersXPCConnectBlock: () -> NSXPCConnection { get }get name(): stringSwift declarationvar name: String { get }get isPrimary(): booleanSwift declarationvar isPrimary: Bool { get }get rooms(): Array<HMRoom>Swift declarationvar rooms: [HMRoom] { get }get serviceGroups(): Array<HMServiceGroup>Swift declarationvar serviceGroups: [HMServiceGroup] { get }get supportsAddingNetworkRouter(): booleanSwift declarationvar supportsAddingNetworkRouter: Bool { get }get triggers(): Array<HMTrigger>Swift declarationvar triggers: [HMTrigger] { get }get uniqueIdentifier(): stringSwift declarationvar uniqueIdentifier: UUID { get }get users(): Array<HMUser>Swift declarationvar users: [HMUser] { get }get zones(): Array<HMZone>Swift declarationvar zones: [HMZone] { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
HMHome.init()
inherited init: clang: 'init' is unavailable