objc2_home_kit/generated/
HMAccessory_Camera.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use objc2::__framework_prelude::*;
4use objc2_foundation::*;
5
6use crate::*;
7
8/// Camera.
9///
10/// Category implementing methods related to camera profile.
11#[cfg(feature = "HMAccessory")]
12impl HMAccessory {
13    extern_methods!(
14        #[cfg(all(feature = "HMAccessoryProfile", feature = "HMCameraProfile"))]
15        /// Returns array of camera profiles implemented by the accessory.
16        ///
17        ///
18        /// An accessory can contain one or more cameras. Each camera is represented as a
19        /// an HMCameraProfile object. If the accessory does not contain a camera, this property
20        /// will be nil.
21        ///
22        /// This property is not atomic.
23        ///
24        /// # Safety
25        ///
26        /// This might not be thread-safe.
27        #[unsafe(method(cameraProfiles))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn cameraProfiles(&self) -> Option<Retained<NSArray<HMCameraProfile>>>;
30    );
31}