objc2_map_kit/generated/
MKAddress.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/mapkit/mkaddress?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct MKAddress;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for MKAddress {}
18);
19
20impl MKAddress {
21    extern_methods!(
22        #[unsafe(method(initWithFullAddress:shortAddress:))]
23        #[unsafe(method_family = init)]
24        pub unsafe fn initWithFullAddress_shortAddress(
25            this: Allocated<Self>,
26            full_address: &NSString,
27            short_address: Option<&NSString>,
28        ) -> Option<Retained<Self>>;
29
30        #[unsafe(method(init))]
31        #[unsafe(method_family = init)]
32        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
33
34        #[unsafe(method(new))]
35        #[unsafe(method_family = new)]
36        pub unsafe fn new() -> Retained<Self>;
37
38        #[unsafe(method(fullAddress))]
39        #[unsafe(method_family = none)]
40        pub unsafe fn fullAddress(&self) -> Retained<NSString>;
41
42        #[unsafe(method(shortAddress))]
43        #[unsafe(method_family = none)]
44        pub unsafe fn shortAddress(&self) -> Option<Retained<NSString>>;
45    );
46}