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")]
25unsafe impl NSObjectProtocol for HMCameraSettingsControl {}
26
27#[cfg(feature = "HMCameraControl")]
28impl HMCameraSettingsControl {
29    extern_methods!(
30        #[unsafe(method(init))]
31        #[unsafe(method_family = init)]
32        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
33
34        #[cfg(feature = "HMCharacteristic")]
35        /// Characteristic corresponding to night vision setting on the camera.
36        #[unsafe(method(nightVision))]
37        #[unsafe(method_family = none)]
38        pub unsafe fn nightVision(&self) -> Option<Retained<HMCharacteristic>>;
39
40        #[cfg(feature = "HMCharacteristic")]
41        /// Characteristic corresponding to current horizontal tilt setting on the camera.
42        #[unsafe(method(currentHorizontalTilt))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn currentHorizontalTilt(&self) -> Option<Retained<HMCharacteristic>>;
45
46        #[cfg(feature = "HMCharacteristic")]
47        /// Characteristic corresponding to target horizontal tilt setting on the camera.
48        #[unsafe(method(targetHorizontalTilt))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn targetHorizontalTilt(&self) -> Option<Retained<HMCharacteristic>>;
51
52        #[cfg(feature = "HMCharacteristic")]
53        /// Characteristic corresponding to current vertical tilt setting on the camera.
54        #[unsafe(method(currentVerticalTilt))]
55        #[unsafe(method_family = none)]
56        pub unsafe fn currentVerticalTilt(&self) -> Option<Retained<HMCharacteristic>>;
57
58        #[cfg(feature = "HMCharacteristic")]
59        /// Characteristic corresponding to target vertical tilt setting on the camera.
60        #[unsafe(method(targetVerticalTilt))]
61        #[unsafe(method_family = none)]
62        pub unsafe fn targetVerticalTilt(&self) -> Option<Retained<HMCharacteristic>>;
63
64        #[cfg(feature = "HMCharacteristic")]
65        /// Characteristic corresponding to optical zoom setting on the camera.
66        #[unsafe(method(opticalZoom))]
67        #[unsafe(method_family = none)]
68        pub unsafe fn opticalZoom(&self) -> Option<Retained<HMCharacteristic>>;
69
70        #[cfg(feature = "HMCharacteristic")]
71        /// Characteristic corresponding to digital zoom setting on the camera.
72        #[unsafe(method(digitalZoom))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn digitalZoom(&self) -> Option<Retained<HMCharacteristic>>;
75
76        #[cfg(feature = "HMCharacteristic")]
77        /// Characteristic corresponding to image rotation setting on the camera.
78        #[unsafe(method(imageRotation))]
79        #[unsafe(method_family = none)]
80        pub unsafe fn imageRotation(&self) -> Option<Retained<HMCharacteristic>>;
81
82        #[cfg(feature = "HMCharacteristic")]
83        /// Characteristic corresponding to image mirroring setting on the camera.
84        #[unsafe(method(imageMirroring))]
85        #[unsafe(method_family = none)]
86        pub unsafe fn imageMirroring(&self) -> Option<Retained<HMCharacteristic>>;
87    );
88}
89
90/// Methods declared on superclass `NSObject`.
91#[cfg(feature = "HMCameraControl")]
92impl HMCameraSettingsControl {
93    extern_methods!(
94        #[unsafe(method(new))]
95        #[unsafe(method_family = new)]
96        pub unsafe fn new() -> Retained<Self>;
97    );
98}