objc2_home_kit/generated/
HMCameraSettingsControl.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::*;
5
6use crate::*;
7
8extern_class!(
9    /// This class can be used to control the settings on a camera.
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/homekit/hmcamerasettingscontrol?language=objc)
12    #[unsafe(super(HMCameraControl, NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    #[cfg(feature = "HMCameraControl")]
15    pub struct HMCameraSettingsControl;
16);
17
18#[cfg(feature = "HMCameraControl")]
19unsafe impl Send for HMCameraSettingsControl {}
20
21#[cfg(feature = "HMCameraControl")]
22unsafe impl Sync for HMCameraSettingsControl {}
23
24#[cfg(feature = "HMCameraControl")]
25extern_conformance!(
26    unsafe impl NSObjectProtocol for HMCameraSettingsControl {}
27);
28
29#[cfg(feature = "HMCameraControl")]
30impl HMCameraSettingsControl {
31    extern_methods!(
32        #[unsafe(method(init))]
33        #[unsafe(method_family = init)]
34        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
35
36        #[cfg(feature = "HMCharacteristic")]
37        /// Characteristic corresponding to night vision setting on the camera.
38        #[unsafe(method(nightVision))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn nightVision(&self) -> Option<Retained<HMCharacteristic>>;
41
42        #[cfg(feature = "HMCharacteristic")]
43        /// Characteristic corresponding to current horizontal tilt setting on the camera.
44        #[unsafe(method(currentHorizontalTilt))]
45        #[unsafe(method_family = none)]
46        pub unsafe fn currentHorizontalTilt(&self) -> Option<Retained<HMCharacteristic>>;
47
48        #[cfg(feature = "HMCharacteristic")]
49        /// Characteristic corresponding to target horizontal tilt setting on the camera.
50        #[unsafe(method(targetHorizontalTilt))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn targetHorizontalTilt(&self) -> Option<Retained<HMCharacteristic>>;
53
54        #[cfg(feature = "HMCharacteristic")]
55        /// Characteristic corresponding to current vertical tilt setting on the camera.
56        #[unsafe(method(currentVerticalTilt))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn currentVerticalTilt(&self) -> Option<Retained<HMCharacteristic>>;
59
60        #[cfg(feature = "HMCharacteristic")]
61        /// Characteristic corresponding to target vertical tilt setting on the camera.
62        #[unsafe(method(targetVerticalTilt))]
63        #[unsafe(method_family = none)]
64        pub unsafe fn targetVerticalTilt(&self) -> Option<Retained<HMCharacteristic>>;
65
66        #[cfg(feature = "HMCharacteristic")]
67        /// Characteristic corresponding to optical zoom setting on the camera.
68        #[unsafe(method(opticalZoom))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn opticalZoom(&self) -> Option<Retained<HMCharacteristic>>;
71
72        #[cfg(feature = "HMCharacteristic")]
73        /// Characteristic corresponding to digital zoom setting on the camera.
74        #[unsafe(method(digitalZoom))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn digitalZoom(&self) -> Option<Retained<HMCharacteristic>>;
77
78        #[cfg(feature = "HMCharacteristic")]
79        /// Characteristic corresponding to image rotation setting on the camera.
80        #[unsafe(method(imageRotation))]
81        #[unsafe(method_family = none)]
82        pub unsafe fn imageRotation(&self) -> Option<Retained<HMCharacteristic>>;
83
84        #[cfg(feature = "HMCharacteristic")]
85        /// Characteristic corresponding to image mirroring setting on the camera.
86        #[unsafe(method(imageMirroring))]
87        #[unsafe(method_family = none)]
88        pub unsafe fn imageMirroring(&self) -> Option<Retained<HMCharacteristic>>;
89    );
90}
91
92/// Methods declared on superclass `NSObject`.
93#[cfg(feature = "HMCameraControl")]
94impl HMCameraSettingsControl {
95    extern_methods!(
96        #[unsafe(method(new))]
97        #[unsafe(method_family = new)]
98        pub unsafe fn new() -> Retained<Self>;
99    );
100}