Contents

addRoom(_:completionHandler:)

Adds a room to the zone.

Declaration

func addRoom(_ room: HMRoom, completionHandler completion: @escaping  @Sendable ((any Error)?) -> Void)
func addRoom(_ room: HMRoom) async throws

Parameters

  • room:

    The room to add; must be in the same home as the zone.

  • completion:

    The block executed after the request is processed.

    error

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

See Also

Assigning Rooms to a Zone