objc2_home_kit/generated/
HMAccessoryCategory.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// This class is used to represent an accessory category.
11    ///
12    /// See also [Apple's documentation](https://developer.apple.com/documentation/homekit/hmaccessorycategory?language=objc)
13    #[unsafe(super(NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    pub struct HMAccessoryCategory;
16);
17
18unsafe impl Send for HMAccessoryCategory {}
19
20unsafe impl Sync for HMAccessoryCategory {}
21
22extern_conformance!(
23    unsafe impl NSObjectProtocol for HMAccessoryCategory {}
24);
25
26impl HMAccessoryCategory {
27    extern_methods!(
28        /// A type identifier that represents the category.
29        #[unsafe(method(categoryType))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn categoryType(&self) -> Retained<NSString>;
32
33        /// The localized description of the category.
34        #[unsafe(method(localizedDescription))]
35        #[unsafe(method_family = none)]
36        pub unsafe fn localizedDescription(&self) -> Retained<NSString>;
37
38        #[unsafe(method(init))]
39        #[unsafe(method_family = init)]
40        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
41    );
42}
43
44/// Methods declared on superclass `NSObject`.
45impl HMAccessoryCategory {
46    extern_methods!(
47        #[unsafe(method(new))]
48        #[unsafe(method_family = new)]
49        pub unsafe fn new() -> Retained<Self>;
50    );
51}