objc2_watch_kit/generated/
WKInterfaceHMCamera.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-home-kit")]
7use objc2_home_kit::*;
8
9use crate::*;
10
11extern_class!(
12    /// [Apple's documentation](https://developer.apple.com/documentation/watchkit/wkinterfacehmcamera?language=objc)
13    #[unsafe(super(WKInterfaceObject, NSObject))]
14    #[derive(Debug, PartialEq, Eq, Hash)]
15    #[cfg(feature = "WKInterfaceObject")]
16    pub struct WKInterfaceHMCamera;
17);
18
19#[cfg(feature = "WKInterfaceObject")]
20extern_conformance!(
21    unsafe impl NSObjectProtocol for WKInterfaceHMCamera {}
22);
23
24#[cfg(feature = "WKInterfaceObject")]
25impl WKInterfaceHMCamera {
26    extern_methods!(
27        #[deprecated = "Use HomeKit.CameraView instead."]
28        #[unsafe(method(init))]
29        #[unsafe(method_family = init)]
30        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
31
32        #[cfg(feature = "objc2-home-kit")]
33        #[unsafe(method(setCameraSource:))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn setCameraSource(&self, camera_source: Option<&HMCameraSource>);
36    );
37}
38
39/// Methods declared on superclass `NSObject`.
40#[cfg(feature = "WKInterfaceObject")]
41impl WKInterfaceHMCamera {
42    extern_methods!(
43        #[unsafe(method(new))]
44        #[unsafe(method_family = new)]
45        pub unsafe fn new() -> Retained<Self>;
46    );
47}