objc2_home_kit/generated/
HMAccessorySetupResult.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    /// [Apple's documentation](https://developer.apple.com/documentation/homekit/hmaccessorysetupresult?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct HMAccessorySetupResult;
14);
15
16unsafe impl Send for HMAccessorySetupResult {}
17
18unsafe impl Sync for HMAccessorySetupResult {}
19
20extern_conformance!(
21    unsafe impl NSCopying for HMAccessorySetupResult {}
22);
23
24unsafe impl CopyingHelper for HMAccessorySetupResult {
25    type Result = Self;
26}
27
28extern_conformance!(
29    unsafe impl NSObjectProtocol for HMAccessorySetupResult {}
30);
31
32impl HMAccessorySetupResult {
33    extern_methods!(
34        /// The -[HMHome uniqueIdentifier] that the accessories were added to
35        #[unsafe(method(homeUniqueIdentifier))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn homeUniqueIdentifier(&self) -> Retained<NSUUID>;
38
39        /// The -[HMAccessory uniqueIdentifier] values corresponding to the accessories that were set up.
40        /// Usually only one accessory is set up at a time, but adding an accessory bridge can result in
41        /// multiple accessories being set up at once
42        #[unsafe(method(accessoryUniqueIdentifiers))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn accessoryUniqueIdentifiers(&self) -> Retained<NSArray<NSUUID>>;
45
46        #[unsafe(method(init))]
47        #[unsafe(method_family = init)]
48        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
49
50        #[unsafe(method(new))]
51        #[unsafe(method_family = new)]
52        pub unsafe fn new() -> Retained<Self>;
53    );
54}