Instance Method

updatePrimaryHome(_:completionHandler:)

Updates the primary home of this home manager.

Declaration

func updatePrimaryHome(_ home: HMHome, completionHandler completion: @escaping (Error?) -> Void)

Parameters

home

The new primary home. Must be a home managed by this home manager.

completion

The block executed after the request is processed.

error

nil on success; otherwise, error object indicating the reason for failure.

See Also

Managing the Primary Home

var primaryHome: HMHome?

The primary home managed by this home manager.