use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(HKLensSpecification, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "HKLensSpecification")]
pub struct HKContactsLensSpecification;
);
#[cfg(feature = "HKLensSpecification")]
unsafe impl Send for HKContactsLensSpecification {}
#[cfg(feature = "HKLensSpecification")]
unsafe impl Sync for HKContactsLensSpecification {}
#[cfg(feature = "HKLensSpecification")]
extern_conformance!(
unsafe impl NSCoding for HKContactsLensSpecification {}
);
#[cfg(feature = "HKLensSpecification")]
extern_conformance!(
unsafe impl NSCopying for HKContactsLensSpecification {}
);
#[cfg(feature = "HKLensSpecification")]
unsafe impl CopyingHelper for HKContactsLensSpecification {
type Result = Self;
}
#[cfg(feature = "HKLensSpecification")]
extern_conformance!(
unsafe impl NSObjectProtocol for HKContactsLensSpecification {}
);
#[cfg(feature = "HKLensSpecification")]
extern_conformance!(
unsafe impl NSSecureCoding for HKContactsLensSpecification {}
);
#[cfg(feature = "HKLensSpecification")]
impl HKContactsLensSpecification {
extern_methods!(
#[cfg(feature = "HKQuantity")]
#[unsafe(method(baseCurve))]
#[unsafe(method_family = none)]
pub unsafe fn baseCurve(&self) -> Option<Retained<HKQuantity>>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(diameter))]
#[unsafe(method_family = none)]
pub unsafe fn diameter(&self) -> Option<Retained<HKQuantity>>;
#[cfg(feature = "HKQuantity")]
#[unsafe(method(initWithSphere:cylinder:axis:addPower:baseCurve:diameter:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithSphere_cylinder_axis_addPower_baseCurve_diameter(
this: Allocated<Self>,
sphere: &HKQuantity,
cylinder: Option<&HKQuantity>,
axis: Option<&HKQuantity>,
add_power: Option<&HKQuantity>,
base_curve: Option<&HKQuantity>,
diameter: Option<&HKQuantity>,
) -> Retained<Self>;
#[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>;
);
}