One Logo Pool Ball
HomeKit · IOS API REFERENCE

HMHomeManager

class · iOS 8.0+ · SDK 27.1

class HMHomeManager

Members (10)

method · iOS 8.0+

addHome

TypeScript
addHome(homeName: string, completion: ((arg0: (HMHome) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func addHome(named homeName: String) async throws -> HMHome
method · iOS 26.1+

findVendorAccessory

TypeScript
findVendorAccessory(hapPublicKey: ArrayBuffer, completion: ((arg0: (HMAccessory) | null, arg1: (NativeError) | null) => void)): void
Swift declaration
func findVendorAccessory(hapPublicKey: Data) async throws -> HMAccessory?
init · iOS 8.0+

init

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

removeHome

TypeScript
removeHome(home: HMHome, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func removeHome(_ home: HMHome) async throws
method · iOS 8.0+ · Deprecated in iOS 16.1

updatePrimaryHome

TypeScript
updatePrimaryHome(home: HMHome, completion: ((arg0: (NativeError) | null) => void)): void
Swift declaration
func updatePrimaryHome(_ home: HMHome) async throws
get · iOS 13.0+

authorizationStatus

TypeScript
get authorizationStatus(): HMHomeManagerAuthorizationStatus
Swift declaration
var authorizationStatus: HMHomeManagerAuthorizationStatus { get }
get · iOS 8.0+

delegate

TypeScript
get delegate(): (SDKHandle) | null
Swift declaration
weak var delegate: (any HMHomeManagerDelegate)? { get set }
set · iOS 8.0+

delegate

TypeScript
set delegate(value: (Implements<HMHomeManagerDelegate> | SDKHandle) | null)
Swift declaration
weak var delegate: (any HMHomeManagerDelegate)? { get set }
get · iOS 8.0+

homes

TypeScript
get homes(): Array<HMHome>
Swift declaration
var homes: [HMHome] { get }
get · iOS 8.0+ · Deprecated in iOS 16.1

primaryHome

TypeScript
get primaryHome(): (HMHome) | null
Swift declaration
var primaryHome: HMHome? { get }

Skipped declarations

No declarations were skipped in this snapshot.

All HomeKit types →