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/// Category implementing methods related to camera profile.
10#[cfg(feature = "HMAccessory")]
11impl HMAccessory {
12 extern_methods!(
13 #[cfg(all(feature = "HMAccessoryProfile", feature = "HMCameraProfile"))]
14 /// Returns array of camera profiles implemented by the accessory.
15 ///
16 ///
17 /// An accessory can contain one or more cameras. Each camera is represented as a
18 /// an HMCameraProfile object. If the accessory does not contain a camera, this property
19 /// will be nil.
20 #[unsafe(method(cameraProfiles))]
21 #[unsafe(method_family = none)]
22 pub unsafe fn cameraProfiles(&self) -> Option<Retained<NSArray<HMCameraProfile>>>;
23 );
24}