use crate::common::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::HealthKit::*;
use crate::UniformTypeIdentifiers::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "HealthKit_HKLiveWorkoutDataSource")]
pub struct HKLiveWorkoutDataSource;
#[cfg(feature = "HealthKit_HKLiveWorkoutDataSource")]
unsafe impl ClassType for HKLiveWorkoutDataSource {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "HealthKit_HKLiveWorkoutDataSource")]
unsafe impl NSObjectProtocol for HKLiveWorkoutDataSource {}
extern_methods!(
#[cfg(feature = "HealthKit_HKLiveWorkoutDataSource")]
unsafe impl HKLiveWorkoutDataSource {
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
#[cfg(all(feature = "Foundation_NSSet", feature = "HealthKit_HKQuantityType"))]
#[method_id(@__retain_semantics Other typesToCollect)]
pub unsafe fn typesToCollect(&self) -> Id<NSSet<HKQuantityType>>;
#[cfg(all(
feature = "HealthKit_HKHealthStore",
feature = "HealthKit_HKWorkoutConfiguration"
))]
#[method_id(@__retain_semantics Init initWithHealthStore:workoutConfiguration:)]
pub unsafe fn initWithHealthStore_workoutConfiguration(
this: Allocated<Self>,
health_store: &HKHealthStore,
configuration: Option<&HKWorkoutConfiguration>,
) -> Id<Self>;
#[cfg(all(
feature = "Foundation_NSPredicate",
feature = "HealthKit_HKQuantityType"
))]
#[method(enableCollectionForType:predicate:)]
pub unsafe fn enableCollectionForType_predicate(
&self,
quantity_type: &HKQuantityType,
predicate: Option<&NSPredicate>,
);
#[cfg(feature = "HealthKit_HKQuantityType")]
#[method(disableCollectionForType:)]
pub unsafe fn disableCollectionForType(&self, quantity_type: &HKQuantityType);
}
);
extern_methods!(
#[cfg(feature = "HealthKit_HKLiveWorkoutDataSource")]
unsafe impl HKLiveWorkoutDataSource {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);