objc2_core_telephony/generated/
CTCall.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern "C" {
10 pub static CTCallStateDialing: &'static NSString;
12}
13
14extern "C" {
15 pub static CTCallStateIncoming: &'static NSString;
17}
18
19extern "C" {
20 pub static CTCallStateConnected: &'static NSString;
22}
23
24extern "C" {
25 pub static CTCallStateDisconnected: &'static NSString;
27}
28
29extern_class!(
30 #[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
52impl 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}