use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct MKGeocodingRequest;
);
extern_conformance!(
unsafe impl NSObjectProtocol for MKGeocodingRequest {}
);
impl MKGeocodingRequest {
extern_methods!(
#[unsafe(method(isCancelled))]
#[unsafe(method_family = none)]
pub unsafe fn isCancelled(&self) -> bool;
#[unsafe(method(isLoading))]
#[unsafe(method_family = none)]
pub unsafe fn isLoading(&self) -> bool;
#[unsafe(method(addressString))]
#[unsafe(method_family = none)]
pub unsafe fn addressString(&self) -> Retained<NSString>;
#[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
#[unsafe(method(region))]
#[unsafe(method_family = none)]
pub unsafe fn region(&self) -> MKCoordinateRegion;
#[cfg(all(feature = "MKGeometry", feature = "objc2-core-location"))]
#[unsafe(method(setRegion:))]
#[unsafe(method_family = none)]
pub unsafe fn setRegion(&self, region: MKCoordinateRegion);
#[unsafe(method(preferredLocale))]
#[unsafe(method_family = none)]
pub unsafe fn preferredLocale(&self) -> Option<Retained<NSLocale>>;
#[unsafe(method(setPreferredLocale:))]
#[unsafe(method_family = none)]
pub unsafe fn setPreferredLocale(&self, preferred_locale: Option<&NSLocale>);
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
#[unsafe(method(initWithAddressString:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithAddressString(
this: Allocated<Self>,
address_string: &NSString,
) -> Option<Retained<Self>>;
#[cfg(all(feature = "MKMapItem", feature = "block2"))]
#[unsafe(method(getMapItemsWithCompletionHandler:))]
#[unsafe(method_family = none)]
pub unsafe fn getMapItemsWithCompletionHandler(
&self,
completion_handler: &block2::DynBlock<dyn Fn(*mut NSArray<MKMapItem>, *mut NSError)>,
);
#[unsafe(method(cancel))]
#[unsafe(method_family = none)]
pub unsafe fn cancel(&self);
);
}