objc2-health-kit 0.3.2

Bindings to the HealthKit framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_class!(
    /// [Apple's documentation](https://developer.apple.com/documentation/healthkit/hkworkoutroute?language=objc)
    #[unsafe(super(HKSeriesSample, HKSample, HKObject, NSObject))]
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
    pub struct HKWorkoutRoute;
);

#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
unsafe impl Send for HKWorkoutRoute {}

#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
unsafe impl Sync for HKWorkoutRoute {}

#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
extern_conformance!(
    unsafe impl NSCoding for HKWorkoutRoute {}
);

#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
extern_conformance!(
    unsafe impl NSObjectProtocol for HKWorkoutRoute {}
);

#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
extern_conformance!(
    unsafe impl NSSecureCoding for HKWorkoutRoute {}
);

#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
impl HKWorkoutRoute {
    extern_methods!();
}

/// Methods declared on superclass `HKObject`.
#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
impl HKWorkoutRoute {
    extern_methods!(
        #[unsafe(method(init))]
        #[unsafe(method_family = init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
    );
}

/// Methods declared on superclass `NSObject`.
#[cfg(all(feature = "HKObject", feature = "HKSample", feature = "HKSeriesSample"))]
impl HKWorkoutRoute {
    extern_methods!(
        #[unsafe(method(new))]
        #[unsafe(method_family = new)]
        pub unsafe fn new() -> Retained<Self>;
    );
}