objc2_core_telephony/generated/
CTCellularPlanProvisioning.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::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/coretelephony/ctcellularplanprovisioning?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct CTCellularPlanProvisioning;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for CTCellularPlanProvisioning {}
18);
19
20impl CTCellularPlanProvisioning {
21    extern_methods!(
22        #[unsafe(method(supportsEmbeddedSIM))]
23        #[unsafe(method_family = none)]
24        pub unsafe fn supportsEmbeddedSIM(&self) -> bool;
25
26        #[unsafe(method(supportsCellularPlan))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn supportsCellularPlan(&self) -> bool;
29
30        #[cfg(all(feature = "CTCellularPlanProvisioningRequest", feature = "block2"))]
31        #[unsafe(method(addPlanWith:completionHandler:))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn addPlanWith_completionHandler(
34            &self,
35            request: &CTCellularPlanProvisioningRequest,
36            completion_handler: &block2::DynBlock<dyn Fn(CTCellularPlanProvisioningAddPlanResult)>,
37        );
38    );
39}
40
41/// Methods declared on superclass `NSObject`.
42impl CTCellularPlanProvisioning {
43    extern_methods!(
44        #[unsafe(method(init))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47
48        #[unsafe(method(new))]
49        #[unsafe(method_family = new)]
50        pub unsafe fn new() -> Retained<Self>;
51    );
52}