objc2_home_kit/generated/
HMEvent.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct HMEvent;
16);
17
18unsafe impl Send for HMEvent {}
19
20unsafe impl Sync for HMEvent {}
21
22extern_conformance!(
23 unsafe impl NSObjectProtocol for HMEvent {}
24);
25
26impl HMEvent {
27 extern_methods!(
28 #[deprecated = "HMEvent is abstract"]
29 #[unsafe(method(init))]
30 #[unsafe(method_family = init)]
31 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
32
33 #[deprecated = "HMEvent is abstract"]
34 #[unsafe(method(new))]
35 #[unsafe(method_family = new)]
36 pub unsafe fn new() -> Retained<Self>;
37
38 #[unsafe(method(uniqueIdentifier))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn uniqueIdentifier(&self) -> Retained<NSUUID>;
48
49 #[cfg(feature = "HMHome")]
50 #[unsafe(method(isSupportedForHome:))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn isSupportedForHome(home: &HMHome) -> bool;
54 );
55}