1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use crate::*;
extern_class!(
/// Represents a camera profile the accessory implements.
///
///
/// Provides an interface to interact with a Camera in an Accessory.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/homekit/hmcameraprofile?language=objc)
#[unsafe(super(HMAccessoryProfile, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "HMAccessoryProfile")]
pub struct HMCameraProfile;
);
#[cfg(feature = "HMAccessoryProfile")]
unsafe impl Send for HMCameraProfile {}
#[cfg(feature = "HMAccessoryProfile")]
unsafe impl Sync for HMCameraProfile {}
#[cfg(feature = "HMAccessoryProfile")]
extern_conformance!(
unsafe impl NSObjectProtocol for HMCameraProfile {}
);
#[cfg(feature = "HMAccessoryProfile")]
impl HMCameraProfile {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[cfg(all(feature = "HMCameraControl", feature = "HMCameraStreamControl"))]
/// Object that can be used to control the camera stream.
///
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(streamControl))]
#[unsafe(method_family = none)]
pub unsafe fn streamControl(&self) -> Option<Retained<HMCameraStreamControl>>;
#[cfg(all(feature = "HMCameraControl", feature = "HMCameraSnapshotControl"))]
/// Object that can be used to take image snapshots from the camera.
///
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(snapshotControl))]
#[unsafe(method_family = none)]
pub unsafe fn snapshotControl(&self) -> Option<Retained<HMCameraSnapshotControl>>;
#[cfg(all(feature = "HMCameraControl", feature = "HMCameraSettingsControl"))]
/// Object that can be used to control the settings on the camera.
///
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(settingsControl))]
#[unsafe(method_family = none)]
pub unsafe fn settingsControl(&self) -> Option<Retained<HMCameraSettingsControl>>;
#[cfg(all(feature = "HMCameraAudioControl", feature = "HMCameraControl"))]
/// Object that can be used to control the speaker settings on the camera.
///
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(speakerControl))]
#[unsafe(method_family = none)]
pub unsafe fn speakerControl(&self) -> Option<Retained<HMCameraAudioControl>>;
#[cfg(all(feature = "HMCameraAudioControl", feature = "HMCameraControl"))]
/// Object that can be used to control the microphone settings on the camera.
///
/// This property is not atomic.
///
/// # Safety
///
/// This might not be thread-safe.
#[unsafe(method(microphoneControl))]
#[unsafe(method_family = none)]
pub unsafe fn microphoneControl(&self) -> Option<Retained<HMCameraAudioControl>>;
);
}
/// Methods declared on superclass `NSObject`.
#[cfg(feature = "HMAccessoryProfile")]
impl HMCameraProfile {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}