use crate::common::*;
use crate::Contacts::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
ns_enum!(
#[underlying(NSInteger)]
pub enum CLLiveUpdateConfiguration {
CLLiveUpdateConfigurationDefault = 0,
CLLiveUpdateConfigurationAutomotiveNavigation = 1,
CLLiveUpdateConfigurationOtherNavigation = 2,
CLLiveUpdateConfigurationFitness = 3,
CLLiveUpdateConfigurationAirborne = 4,
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CoreLocation_CLUpdate")]
pub struct CLUpdate;
#[cfg(feature = "CoreLocation_CLUpdate")]
unsafe impl ClassType for CLUpdate {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CoreLocation_CLUpdate")]
unsafe impl NSObjectProtocol for CLUpdate {}
extern_methods!(
#[cfg(feature = "CoreLocation_CLUpdate")]
unsafe impl CLUpdate {
#[method(isStationary)]
pub unsafe fn isStationary(&self) -> bool;
#[cfg(feature = "CoreLocation_CLLocation")]
#[method_id(@__retain_semantics Other location)]
pub unsafe fn location(&self) -> Option<Id<CLLocation>>;
}
);
extern_methods!(
#[cfg(feature = "CoreLocation_CLUpdate")]
unsafe impl CLUpdate {
#[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>;
}
);
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "CoreLocation_CLLocationUpdater")]
pub struct CLLocationUpdater;
#[cfg(feature = "CoreLocation_CLLocationUpdater")]
unsafe impl ClassType for CLLocationUpdater {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "CoreLocation_CLLocationUpdater")]
unsafe impl NSObjectProtocol for CLLocationUpdater {}
extern_methods!(
#[cfg(feature = "CoreLocation_CLLocationUpdater")]
unsafe impl CLLocationUpdater {
#[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(resume)]
pub unsafe fn resume(&self);
#[method(pause)]
pub unsafe fn pause(&self);
#[method(invalidate)]
pub unsafe fn invalidate(&self);
}
);