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
17unsafe impl NSExtensionRequestHandling for CXCallDirectoryProvider {}
18
19unsafe impl NSObjectProtocol for CXCallDirectoryProvider {}
20
21impl CXCallDirectoryProvider {
22    extern_methods!(
23        #[cfg(feature = "CXCallDirectoryExtensionContext")]
24        #[unsafe(method(beginRequestWithExtensionContext:))]
25        #[unsafe(method_family = none)]
26        pub unsafe fn beginRequestWithExtensionContext(
27            &self,
28            context: &CXCallDirectoryExtensionContext,
29        );
30    );
31}
32
33/// Methods declared on superclass `NSObject`.
34impl CXCallDirectoryProvider {
35    extern_methods!(
36        #[unsafe(method(init))]
37        #[unsafe(method_family = init)]
38        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
39
40        #[unsafe(method(new))]
41        #[unsafe(method_family = new)]
42        pub unsafe fn new() -> Retained<Self>;
43    );
44}