objc2_call_kit/generated/
CXCallDirectoryProvider.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/callkit/cxcalldirectoryprovider?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct CXCallDirectoryProvider;
15);
16
17extern_conformance!(
18    unsafe impl NSExtensionRequestHandling for CXCallDirectoryProvider {}
19);
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for CXCallDirectoryProvider {}
23);
24
25impl CXCallDirectoryProvider {
26    extern_methods!(
27        #[cfg(feature = "CXCallDirectoryExtensionContext")]
28        #[unsafe(method(beginRequestWithExtensionContext:))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn beginRequestWithExtensionContext(
31            &self,
32            context: &CXCallDirectoryExtensionContext,
33        );
34    );
35}
36
37/// Methods declared on superclass `NSObject`.
38impl CXCallDirectoryProvider {
39    extern_methods!(
40        #[unsafe(method(init))]
41        #[unsafe(method_family = init)]
42        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
43
44        #[unsafe(method(new))]
45        #[unsafe(method_family = new)]
46        pub unsafe fn new() -> Retained<Self>;
47    );
48}