servicesWithTypes(_:)
Returns an array of all services provided by accessories in the home that match the specified types.
Declaration
func servicesWithTypes(_ serviceTypes: [String]) -> [HMService]?Parameters
- serviceTypes:
An array of strings that identify service types. See Accessory Service Types for a list of types.
Return Value
An array of found services. Returns nil if no matching services are found.