use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(HKQuery, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "HKQuery")]
pub struct HKUserAnnotatedMedicationQuery;
);
#[cfg(feature = "HKQuery")]
unsafe impl Send for HKUserAnnotatedMedicationQuery {}
#[cfg(feature = "HKQuery")]
unsafe impl Sync for HKUserAnnotatedMedicationQuery {}
#[cfg(feature = "HKQuery")]
extern_conformance!(
unsafe impl NSObjectProtocol for HKUserAnnotatedMedicationQuery {}
);
#[cfg(feature = "HKQuery")]
impl HKUserAnnotatedMedicationQuery {
extern_methods!(
#[cfg(all(feature = "HKUserAnnotatedMedication", feature = "block2"))]
#[unsafe(method(initWithPredicate:limit:resultsHandler:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithPredicate_limit_resultsHandler(
this: Allocated<Self>,
predicate: Option<&NSPredicate>,
limit: NSUInteger,
results_handler: &block2::DynBlock<
dyn Fn(
NonNull<HKUserAnnotatedMedicationQuery>,
*mut HKUserAnnotatedMedication,
Bool,
*mut NSError,
),
>,
) -> Retained<Self>;
);
}
#[cfg(feature = "HKQuery")]
impl HKUserAnnotatedMedicationQuery {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(feature = "HKQuery")]
impl HKUserAnnotatedMedicationQuery {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}