objc2_core_telephony/generated/
CTSubscriberInfo.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::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctsubscriberinfo?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct CTSubscriberInfo;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for CTSubscriberInfo {}
18);
19
20impl CTSubscriberInfo {
21    extern_methods!(
22        #[cfg(feature = "CTSubscriber")]
23        #[unsafe(method(subscribers))]
24        #[unsafe(method_family = none)]
25        pub unsafe fn subscribers() -> Retained<NSArray<CTSubscriber>>;
26
27        #[cfg(feature = "CTSubscriber")]
28        #[deprecated]
29        #[unsafe(method(subscriber))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn subscriber() -> Retained<CTSubscriber>;
32    );
33}
34
35/// Methods declared on superclass `NSObject`.
36impl CTSubscriberInfo {
37    extern_methods!(
38        #[unsafe(method(init))]
39        #[unsafe(method_family = init)]
40        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
41
42        #[unsafe(method(new))]
43        #[unsafe(method_family = new)]
44        pub unsafe fn new() -> Retained<Self>;
45    );
46}