icrate 0.1.2

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
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_HKSource")]
    pub struct HKSource;

    #[cfg(feature = "HealthKit_HKSource")]
    unsafe impl ClassType for HKSource {
        type Super = NSObject;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "HealthKit_HKSource")]
unsafe impl NSCoding for HKSource {}

#[cfg(feature = "HealthKit_HKSource")]
unsafe impl NSCopying for HKSource {}

#[cfg(feature = "HealthKit_HKSource")]
unsafe impl NSObjectProtocol for HKSource {}

#[cfg(feature = "HealthKit_HKSource")]
unsafe impl NSSecureCoding for HKSource {}

extern_methods!(
    #[cfg(feature = "HealthKit_HKSource")]
    unsafe impl HKSource {
        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other name)]
        pub unsafe fn name(&self) -> Id<NSString>;

        #[cfg(feature = "Foundation_NSString")]
        #[method_id(@__retain_semantics Other bundleIdentifier)]
        pub unsafe fn bundleIdentifier(&self) -> Id<NSString>;

        #[method_id(@__retain_semantics Other defaultSource)]
        pub unsafe fn defaultSource() -> Id<HKSource>;

        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "HealthKit_HKSource")]
    unsafe impl HKSource {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);