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