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::Contacts::*;
use crate::CoreLocation::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "CoreLocation_CLBackgroundActivitySession")]
    pub struct CLBackgroundActivitySession;

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

#[cfg(feature = "CoreLocation_CLBackgroundActivitySession")]
unsafe impl NSObjectProtocol for CLBackgroundActivitySession {}

extern_methods!(
    #[cfg(feature = "CoreLocation_CLBackgroundActivitySession")]
    unsafe impl CLBackgroundActivitySession {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;

        #[method(invalidate)]
        pub unsafe fn invalidate(&self);

        #[method_id(@__retain_semantics Other backgroundActivitySession)]
        pub unsafe fn backgroundActivitySession() -> Id<Self>;
    }
);