use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct CTCellularPlanProvisioning;
);
extern_conformance!(
unsafe impl NSObjectProtocol for CTCellularPlanProvisioning {}
);
impl CTCellularPlanProvisioning {
extern_methods!(
#[unsafe(method(supportsEmbeddedSIM))]
#[unsafe(method_family = none)]
pub unsafe fn supportsEmbeddedSIM(&self) -> bool;
#[unsafe(method(supportsCellularPlan))]
#[unsafe(method_family = none)]
pub unsafe fn supportsCellularPlan(&self) -> bool;
#[cfg(all(feature = "CTCellularPlanProvisioningRequest", feature = "block2"))]
#[unsafe(method(addPlanWith:completionHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn addPlanWith_completionHandler(
&self,
request: &CTCellularPlanProvisioningRequest,
completion_handler: &block2::DynBlock<dyn Fn(CTCellularPlanProvisioningAddPlanResult)>,
);
#[cfg(all(
feature = "CTCellularPlanProperties",
feature = "CTCellularPlanProvisioningRequest",
feature = "block2"
))]
#[unsafe(method(addPlanWithRequest:properties:completionHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn addPlanWithRequest_properties_completionHandler(
&self,
request: &CTCellularPlanProvisioningRequest,
properties: Option<&CTCellularPlanProperties>,
completion_handler: &block2::DynBlock<dyn Fn(CTCellularPlanProvisioningAddPlanResult)>,
);
#[cfg(all(feature = "CTCellularPlanProperties", feature = "block2"))]
#[unsafe(method(updateCellularPlanProperties:completionHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn updateCellularPlanProperties_completionHandler(
&self,
properties: &CTCellularPlanProperties,
completion_handler: &block2::DynBlock<dyn Fn(*mut NSError)>,
);
);
}
impl CTCellularPlanProvisioning {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}