objc2_core_telephony/generated/
CTCall.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 "C" {
10    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcallstatedialing?language=objc)
11    pub static CTCallStateDialing: &'static NSString;
12}
13
14extern "C" {
15    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcallstateincoming?language=objc)
16    pub static CTCallStateIncoming: &'static NSString;
17}
18
19extern "C" {
20    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcallstateconnected?language=objc)
21    pub static CTCallStateConnected: &'static NSString;
22}
23
24extern "C" {
25    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcallstatedisconnected?language=objc)
26    pub static CTCallStateDisconnected: &'static NSString;
27}
28
29extern_class!(
30    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcall?language=objc)
31    #[unsafe(super(NSObject))]
32    #[derive(Debug, PartialEq, Eq, Hash)]
33    pub struct CTCall;
34);
35
36extern_conformance!(
37    unsafe impl NSObjectProtocol for CTCall {}
38);
39
40impl CTCall {
41    extern_methods!(
42        #[unsafe(method(callState))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn callState(&self) -> Retained<NSString>;
45
46        #[unsafe(method(callID))]
47        #[unsafe(method_family = none)]
48        pub unsafe fn callID(&self) -> Retained<NSString>;
49    );
50}
51
52/// Methods declared on superclass `NSObject`.
53impl CTCall {
54    extern_methods!(
55        #[unsafe(method(init))]
56        #[unsafe(method_family = init)]
57        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
58
59        #[unsafe(method(new))]
60        #[unsafe(method_family = new)]
61        pub unsafe fn new() -> Retained<Self>;
62    );
63}