use crate::common::*;
use crate::AppKit::*;
use crate::Contacts::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::MapKit::*;
pub type MKLocalSearchCompletionHandler =
*mut Block<(*mut MKLocalSearchResponse, *mut NSError), ()>;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "MapKit_MKLocalSearch")]
pub struct MKLocalSearch;
#[cfg(feature = "MapKit_MKLocalSearch")]
unsafe impl ClassType for MKLocalSearch {
type Super = NSObject;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "MapKit_MKLocalSearch")]
unsafe impl NSObjectProtocol for MKLocalSearch {}
extern_methods!(
#[cfg(feature = "MapKit_MKLocalSearch")]
unsafe impl MKLocalSearch {
#[cfg(feature = "MapKit_MKLocalSearchRequest")]
#[method_id(@__retain_semantics Init initWithRequest:)]
pub unsafe fn initWithRequest(
this: Allocated<Self>,
request: &MKLocalSearchRequest,
) -> Id<Self>;
#[cfg(feature = "MapKit_MKLocalPointsOfInterestRequest")]
#[method_id(@__retain_semantics Init initWithPointsOfInterestRequest:)]
pub unsafe fn initWithPointsOfInterestRequest(
this: Allocated<Self>,
request: &MKLocalPointsOfInterestRequest,
) -> Id<Self>;
#[method(startWithCompletionHandler:)]
pub unsafe fn startWithCompletionHandler(
&self,
completion_handler: MKLocalSearchCompletionHandler,
);
#[method(cancel)]
pub unsafe fn cancel(&self);
#[method(isSearching)]
pub unsafe fn isSearching(&self) -> bool;
}
);
extern_methods!(
#[cfg(feature = "MapKit_MKLocalSearch")]
unsafe impl MKLocalSearch {
#[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>;
}
);