Instance Method

removeHome(_:completionHandler:)

Removes a home from this home manager.

Declaration

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

Parameters

home

The home to remove.

completion

The block executed after the request is processed.

error

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

Discussion

This method returns an error if the specified home is not managed by the home manager.

See Also

Adding and Removing Homes