objc2_core_location/generated/
CLBeaconIdentityCondition.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9pub type CLBeaconMajorValue = u16;
11
12pub type CLBeaconMinorValue = u16;
14
15extern_class!(
16 #[unsafe(super(CLCondition, NSObject))]
18 #[derive(Debug, PartialEq, Eq, Hash)]
19 #[cfg(feature = "CLCondition")]
20 pub struct CLBeaconIdentityCondition;
21);
22
23#[cfg(feature = "CLCondition")]
24extern_conformance!(
25 unsafe impl NSCoding for CLBeaconIdentityCondition {}
26);
27
28#[cfg(feature = "CLCondition")]
29extern_conformance!(
30 unsafe impl NSCopying for CLBeaconIdentityCondition {}
31);
32
33#[cfg(feature = "CLCondition")]
34unsafe impl CopyingHelper for CLBeaconIdentityCondition {
35 type Result = Self;
36}
37
38#[cfg(feature = "CLCondition")]
39extern_conformance!(
40 unsafe impl NSObjectProtocol for CLBeaconIdentityCondition {}
41);
42
43#[cfg(feature = "CLCondition")]
44extern_conformance!(
45 unsafe impl NSSecureCoding for CLBeaconIdentityCondition {}
46);
47
48#[cfg(feature = "CLCondition")]
49impl CLBeaconIdentityCondition {
50 extern_methods!(
51 #[unsafe(method(UUID))]
57 #[unsafe(method_family = none)]
58 pub unsafe fn UUID(&self) -> Retained<NSUUID>;
59
60 #[unsafe(method(major))]
66 #[unsafe(method_family = none)]
67 pub unsafe fn major(&self) -> Option<Retained<NSNumber>>;
68
69 #[unsafe(method(minor))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn minor(&self) -> Option<Retained<NSNumber>>;
77
78 #[unsafe(method(initWithUUID:))]
79 #[unsafe(method_family = init)]
80 pub unsafe fn initWithUUID(this: Allocated<Self>, uuid: &NSUUID) -> Retained<Self>;
81
82 #[unsafe(method(initWithUUID:major:))]
83 #[unsafe(method_family = init)]
84 pub unsafe fn initWithUUID_major(
85 this: Allocated<Self>,
86 uuid: &NSUUID,
87 major: CLBeaconMajorValue,
88 ) -> Retained<Self>;
89
90 #[unsafe(method(initWithUUID:major:minor:))]
91 #[unsafe(method_family = init)]
92 pub unsafe fn initWithUUID_major_minor(
93 this: Allocated<Self>,
94 uuid: &NSUUID,
95 major: CLBeaconMajorValue,
96 minor: CLBeaconMinorValue,
97 ) -> Retained<Self>;
98 );
99}
100
101#[cfg(feature = "CLCondition")]
103impl CLBeaconIdentityCondition {
104 extern_methods!(
105 #[unsafe(method(init))]
106 #[unsafe(method_family = init)]
107 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
108
109 #[unsafe(method(new))]
110 #[unsafe(method_family = new)]
111 pub unsafe fn new() -> Retained<Self>;
112 );
113}