objc2_core_telephony/generated/
CTCellularPlanProvisioning.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct CTCellularPlanProvisioning;
15);
16
17extern_conformance!(
18 unsafe impl NSObjectProtocol for CTCellularPlanProvisioning {}
19);
20
21impl CTCellularPlanProvisioning {
22 extern_methods!(
23 #[unsafe(method(supportsEmbeddedSIM))]
24 #[unsafe(method_family = none)]
25 pub unsafe fn supportsEmbeddedSIM(&self) -> bool;
26
27 #[unsafe(method(supportsCellularPlan))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn supportsCellularPlan(&self) -> bool;
30
31 #[cfg(all(feature = "CTCellularPlanProvisioningRequest", feature = "block2"))]
32 #[unsafe(method(addPlanWith:completionHandler:))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn addPlanWith_completionHandler(
35 &self,
36 request: &CTCellularPlanProvisioningRequest,
37 completion_handler: &block2::DynBlock<dyn Fn(CTCellularPlanProvisioningAddPlanResult)>,
38 );
39
40 #[cfg(all(
41 feature = "CTCellularPlanProperties",
42 feature = "CTCellularPlanProvisioningRequest",
43 feature = "block2"
44 ))]
45 #[unsafe(method(addPlanWithRequest:properties:completionHandler:))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn addPlanWithRequest_properties_completionHandler(
48 &self,
49 request: &CTCellularPlanProvisioningRequest,
50 properties: Option<&CTCellularPlanProperties>,
51 completion_handler: &block2::DynBlock<dyn Fn(CTCellularPlanProvisioningAddPlanResult)>,
52 );
53
54 #[cfg(all(feature = "CTCellularPlanProperties", feature = "block2"))]
55 #[unsafe(method(updateCellularPlanProperties:completionHandler:))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn updateCellularPlanProperties_completionHandler(
58 &self,
59 properties: &CTCellularPlanProperties,
60 completion_handler: &block2::DynBlock<dyn Fn(*mut NSError)>,
61 );
62 );
63}
64
65impl CTCellularPlanProvisioning {
67 extern_methods!(
68 #[unsafe(method(init))]
69 #[unsafe(method_family = init)]
70 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
71
72 #[unsafe(method(new))]
73 #[unsafe(method_family = new)]
74 pub unsafe fn new() -> Retained<Self>;
75 );
76}