Instance Property

category

The category to which the accessory belongs.

Declaration

var category: HMAccessoryCategory { get }

Discussion

The accessory’s category property contains an instance of the HMAccessoryCategory class that indicates the kind of accessory, like light bulb, garage door opener, or faucet. Use this information to help users distinguish among different accessories in their environment.

See Also

Categorizing an Accessory

class HMAccessoryCategory

A category for a HomeKit accessory.