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 objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

/// Camera.
///
/// Category implementing methods related to camera profile.
#[cfg(feature = "HMAccessory")]
impl HMAccessory {
    extern_methods!(
        #[cfg(all(feature = "HMAccessoryProfile", feature = "HMCameraProfile"))]
        /// Returns array of camera profiles implemented by the accessory.
        ///
        ///
        /// An accessory can contain one or more cameras. Each camera is represented as a
        /// an HMCameraProfile object. If the accessory does not contain a camera, this property
        /// will be nil.
        ///
        /// This property is not atomic.
        ///
        /// # Safety
        ///
        /// This might not be thread-safe.
        #[unsafe(method(cameraProfiles))]
        #[unsafe(method_family = none)]
        pub unsafe fn cameraProfiles(&self) -> Option<Retained<NSArray<HMCameraProfile>>>;
    );
}