objc2_intents/generated/
INLocationSearchTypeResolutionResult.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::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inlocationsearchtyperesolutionresult?language=objc)
10    #[unsafe(super(INIntentResolutionResult, NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    #[cfg(feature = "INIntentResolutionResult")]
13    pub struct INLocationSearchTypeResolutionResult;
14);
15
16#[cfg(feature = "INIntentResolutionResult")]
17extern_conformance!(
18    unsafe impl NSObjectProtocol for INLocationSearchTypeResolutionResult {}
19);
20
21#[cfg(feature = "INIntentResolutionResult")]
22impl INLocationSearchTypeResolutionResult {
23    extern_methods!(
24        #[cfg(feature = "INLocationSearchType")]
25        #[unsafe(method(successWithResolvedLocationSearchType:))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn successWithResolvedLocationSearchType(
28            resolved_location_search_type: INLocationSearchType,
29        ) -> Retained<Self>;
30
31        #[cfg(feature = "INLocationSearchType")]
32        #[unsafe(method(confirmationRequiredWithLocationSearchTypeToConfirm:))]
33        #[unsafe(method_family = none)]
34        pub unsafe fn confirmationRequiredWithLocationSearchTypeToConfirm(
35            location_search_type_to_confirm: INLocationSearchType,
36        ) -> Retained<Self>;
37    );
38}
39
40/// Methods declared on superclass `INIntentResolutionResult`.
41#[cfg(feature = "INIntentResolutionResult")]
42impl INLocationSearchTypeResolutionResult {
43    extern_methods!(
44        #[unsafe(method(init))]
45        #[unsafe(method_family = init)]
46        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
47
48        #[unsafe(method(needsValue))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn needsValue() -> Retained<Self>;
51
52        #[unsafe(method(notRequired))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn notRequired() -> Retained<Self>;
55
56        #[unsafe(method(unsupported))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn unsupported() -> Retained<Self>;
59    );
60}
61
62/// Methods declared on superclass `NSObject`.
63#[cfg(feature = "INIntentResolutionResult")]
64impl INLocationSearchTypeResolutionResult {
65    extern_methods!(
66        #[unsafe(method(new))]
67        #[unsafe(method_family = new)]
68        pub unsafe fn new() -> Retained<Self>;
69    );
70}