objc2-core-telephony 0.3.2

Bindings to the CoreTelephony framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcallstatedialing?language=objc)
    pub static CTCallStateDialing: &'static NSString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcallstateincoming?language=objc)
    pub static CTCallStateIncoming: &'static NSString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcallstateconnected?language=objc)
    pub static CTCallStateConnected: &'static NSString;
}

extern "C" {
    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcallstatedisconnected?language=objc)
    pub static CTCallStateDisconnected: &'static NSString;
}

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcall?language=objc)
    #[unsafe(super(NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct CTCall;
);

extern_conformance!(
    unsafe impl NSObjectProtocol for CTCall {}
);

impl CTCall {
    extern_methods!(
        #[unsafe(method(callState))]
        #[unsafe(method_family = none)]
        pub unsafe fn callState(&self) -> Retained<NSString>;

        #[unsafe(method(callID))]
        #[unsafe(method_family = none)]
        pub unsafe fn callID(&self) -> Retained<NSString>;
    );
}

/// Methods declared on superclass `NSObject`.
impl CTCall {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}