Instance Property

category

The category to which the accessory belongs.

Declaration

@property(readonly, strong, nonatomic) HMAccessoryCategory *category;

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

HMAccessoryCategory

A category for a HomeKit accessory.