objc2_core_telephony/generated/
CTCellularPlanStatus.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 CTCellularPlanStatus;
15);
16
17extern_conformance!(
18 unsafe impl NSObjectProtocol for CTCellularPlanStatus {}
19);
20
21impl CTCellularPlanStatus {
22 extern_methods!(
23 #[cfg(feature = "block2")]
24 #[unsafe(method(getTokenWithCompletion:))]
25 #[unsafe(method_family = none)]
26 pub unsafe fn getTokenWithCompletion(
27 completion_handler: &block2::DynBlock<dyn Fn(*mut NSString, *mut NSError)>,
28 );
29
30 #[cfg(feature = "block2")]
31 #[unsafe(method(checkValidityOfToken:completionHandler:))]
32 #[unsafe(method_family = none)]
33 pub unsafe fn checkValidityOfToken_completionHandler(
34 token: &NSString,
35 completion_handler: &block2::DynBlock<dyn Fn(Bool, *mut NSError)>,
36 );
37 );
38}
39
40impl CTCellularPlanStatus {
42 extern_methods!(
43 #[unsafe(method(init))]
44 #[unsafe(method_family = init)]
45 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47 #[unsafe(method(new))]
48 #[unsafe(method_family = new)]
49 pub unsafe fn new() -> Retained<Self>;
50 );
51}