---
title: serviceType
framework: homekit
role: symbol
role_heading: Instance Property
path: homekit/hmservice/servicetype
---

# serviceType

The type of the service.

## Declaration

```swift
var serviceType: String { get }
```

## Discussion

Discussion The serviceType property contains a string that indicates what the service does. See Accessory Service Types for a list of possible service types.

## See Also

### Getting the service type

- [Accessory Service Types](homekit/accessory-service-types.md)
- [localizedDescription](homekit/hmservice/localizeddescription.md)
