objc2-home-kit 0.3.2

Bindings to the HomeKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/homekit/hmaccessorysetupresult?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct HMAccessorySetupResult;
);

unsafe impl Send for HMAccessorySetupResult {}

unsafe impl Sync for HMAccessorySetupResult {}

extern_conformance!(
    unsafe impl NSCopying for HMAccessorySetupResult {}
);

unsafe impl CopyingHelper for HMAccessorySetupResult {
    type Result = Self;
}

extern_conformance!(
    unsafe impl NSObjectProtocol for HMAccessorySetupResult {}
);

impl HMAccessorySetupResult {
    extern_methods!(
        /// The -[HMHome uniqueIdentifier] that the accessories were added to
        #[unsafe(method(homeUniqueIdentifier))]
        #[unsafe(method_family = none)]
        pub unsafe fn homeUniqueIdentifier(&self) -> Retained<NSUUID>;

        /// The -[HMAccessory uniqueIdentifier] values corresponding to the accessories that were set up.
        /// Usually only one accessory is set up at a time, but adding an accessory bridge can result in
        /// multiple accessories being set up at once
        #[unsafe(method(accessoryUniqueIdentifiers))]
        #[unsafe(method_family = none)]
        pub unsafe fn accessoryUniqueIdentifiers(&self) -> Retained<NSArray<NSUUID>>;

        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}