Class

HMAccessoryCategory

A category for a HomeKit accessory.

Declaration

class HMAccessoryCategory : NSObject

Overview

A category represents a class of devices, like light bulbs or outlets. You can use a category to help users identify the types of accessories they’re browsing. For example, when adding a lamp and a fan to a home, users might not be able to distinguish these accessories if you display only the manufacturer name and model number for each accessory. To improve the user experience, you can use the category information associated with each accessory to help the user understand which accessory is the lamp and which is the fan.

Topics

Reading the Category Type

var categoryType: String

The category to which this accessory belongs.

Accessory Category Types

The accessory category types supported by HomeKit.

Describing the Category

var localizedDescription: String

A localized description of the category.

Relationships

Inherits From

Conforms To

See Also

Categorizing an Accessory

var category: HMAccessoryCategory

The category to which the accessory belongs.