objc2_intents/generated/
INURLResolutionResult.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/intents/inurlresolutionresult?language=objc)
11    #[unsafe(super(INIntentResolutionResult, NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    #[cfg(feature = "INIntentResolutionResult")]
14    pub struct INURLResolutionResult;
15);
16
17#[cfg(feature = "INIntentResolutionResult")]
18extern_conformance!(
19    unsafe impl NSObjectProtocol for INURLResolutionResult {}
20);
21
22#[cfg(feature = "INIntentResolutionResult")]
23impl INURLResolutionResult {
24    extern_methods!(
25        #[unsafe(method(successWithResolvedURL:))]
26        #[unsafe(method_family = none)]
27        pub unsafe fn successWithResolvedURL(resolved_url: &NSURL) -> Retained<Self>;
28
29        #[unsafe(method(disambiguationWithURLsToDisambiguate:))]
30        #[unsafe(method_family = none)]
31        pub unsafe fn disambiguationWithURLsToDisambiguate(
32            urls_to_disambiguate: &NSArray<NSURL>,
33        ) -> Retained<Self>;
34
35        #[unsafe(method(confirmationRequiredWithURLToConfirm:))]
36        #[unsafe(method_family = none)]
37        pub unsafe fn confirmationRequiredWithURLToConfirm(
38            url_to_confirm: Option<&NSURL>,
39        ) -> Retained<Self>;
40    );
41}
42
43/// Methods declared on superclass `INIntentResolutionResult`.
44#[cfg(feature = "INIntentResolutionResult")]
45impl INURLResolutionResult {
46    extern_methods!(
47        #[unsafe(method(init))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
50
51        #[unsafe(method(needsValue))]
52        #[unsafe(method_family = none)]
53        pub unsafe fn needsValue() -> Retained<Self>;
54
55        #[unsafe(method(notRequired))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn notRequired() -> Retained<Self>;
58
59        #[unsafe(method(unsupported))]
60        #[unsafe(method_family = none)]
61        pub unsafe fn unsupported() -> Retained<Self>;
62    );
63}
64
65/// Methods declared on superclass `NSObject`.
66#[cfg(feature = "INIntentResolutionResult")]
67impl INURLResolutionResult {
68    extern_methods!(
69        #[unsafe(method(new))]
70        #[unsafe(method_family = new)]
71        pub unsafe fn new() -> Retained<Self>;
72    );
73}