objc2_home_kit/generated/
HMCameraControl.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    /// Represents a generic camera control.
10    ///
11    /// See also [Apple's documentation](https://developer.apple.com/documentation/homekit/hmcameracontrol?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct HMCameraControl;
15);
16
17unsafe impl Send for HMCameraControl {}
18
19unsafe impl Sync for HMCameraControl {}
20
21unsafe impl NSObjectProtocol for HMCameraControl {}
22
23impl HMCameraControl {
24    extern_methods!(
25        #[deprecated = "HMCameraControl is a base class for other types. Directly creating them is not supported."]
26        #[unsafe(method(init))]
27        #[unsafe(method_family = init)]
28        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
29    );
30}
31
32/// Methods declared on superclass `NSObject`.
33impl HMCameraControl {
34    extern_methods!(
35        #[unsafe(method(new))]
36        #[unsafe(method_family = new)]
37        pub unsafe fn new() -> Retained<Self>;
38    );
39}