objc2_intents/generated/
INStartVideoCallIntentResponse.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
9/// [Apple's documentation](https://developer.apple.com/documentation/intents/instartvideocallintentresponsecode?language=objc)
10// NS_ENUM
11#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
12#[repr(transparent)]
13#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
14pub struct INStartVideoCallIntentResponseCode(pub NSInteger);
15impl INStartVideoCallIntentResponseCode {
16    #[doc(alias = "INStartVideoCallIntentResponseCodeUnspecified")]
17    #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
18    pub const Unspecified: Self = Self(0);
19    #[doc(alias = "INStartVideoCallIntentResponseCodeReady")]
20    #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
21    pub const Ready: Self = Self(1);
22    #[doc(alias = "INStartVideoCallIntentResponseCodeContinueInApp")]
23    #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
24    pub const ContinueInApp: Self = Self(2);
25    #[doc(alias = "INStartVideoCallIntentResponseCodeFailure")]
26    #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
27    pub const Failure: Self = Self(3);
28    #[doc(alias = "INStartVideoCallIntentResponseCodeFailureRequiringAppLaunch")]
29    #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
30    pub const FailureRequiringAppLaunch: Self = Self(4);
31    #[doc(alias = "INStartVideoCallIntentResponseCodeFailureAppConfigurationRequired")]
32    #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
33    pub const FailureAppConfigurationRequired: Self = Self(5);
34    #[doc(alias = "INStartVideoCallIntentResponseCodeFailureCallingServiceNotAvailable")]
35    #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
36    pub const FailureCallingServiceNotAvailable: Self = Self(6);
37    #[doc(alias = "INStartVideoCallIntentResponseCodeFailureContactNotSupportedByApp")]
38    #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
39    pub const FailureContactNotSupportedByApp: Self = Self(7);
40    #[doc(alias = "INStartVideoCallIntentResponseCodeFailureInvalidNumber")]
41    pub const FailureInvalidNumber: Self = Self(8);
42}
43
44unsafe impl Encode for INStartVideoCallIntentResponseCode {
45    const ENCODING: Encoding = NSInteger::ENCODING;
46}
47
48unsafe impl RefEncode for INStartVideoCallIntentResponseCode {
49    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
50}
51
52extern_class!(
53    /// [Apple's documentation](https://developer.apple.com/documentation/intents/instartvideocallintentresponse?language=objc)
54    #[unsafe(super(INIntentResponse, NSObject))]
55    #[derive(Debug, PartialEq, Eq, Hash)]
56    #[cfg(feature = "INIntentResponse")]
57    #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
58    pub struct INStartVideoCallIntentResponse;
59);
60
61#[cfg(feature = "INIntentResponse")]
62extern_conformance!(
63    unsafe impl NSCoding for INStartVideoCallIntentResponse {}
64);
65
66#[cfg(feature = "INIntentResponse")]
67extern_conformance!(
68    unsafe impl NSCopying for INStartVideoCallIntentResponse {}
69);
70
71#[cfg(feature = "INIntentResponse")]
72unsafe impl CopyingHelper for INStartVideoCallIntentResponse {
73    type Result = Self;
74}
75
76#[cfg(feature = "INIntentResponse")]
77extern_conformance!(
78    unsafe impl NSObjectProtocol for INStartVideoCallIntentResponse {}
79);
80
81#[cfg(feature = "INIntentResponse")]
82extern_conformance!(
83    unsafe impl NSSecureCoding for INStartVideoCallIntentResponse {}
84);
85
86#[cfg(feature = "INIntentResponse")]
87impl INStartVideoCallIntentResponse {
88    extern_methods!(
89        #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
90        #[unsafe(method(init))]
91        #[unsafe(method_family = init)]
92        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
93
94        #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
95        #[unsafe(method(initWithCode:userActivity:))]
96        #[unsafe(method_family = init)]
97        pub unsafe fn initWithCode_userActivity(
98            this: Allocated<Self>,
99            code: INStartVideoCallIntentResponseCode,
100            user_activity: Option<&NSUserActivity>,
101        ) -> Retained<Self>;
102
103        #[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
104        #[unsafe(method(code))]
105        #[unsafe(method_family = none)]
106        pub unsafe fn code(&self) -> INStartVideoCallIntentResponseCode;
107    );
108}
109
110/// Methods declared on superclass `NSObject`.
111#[cfg(feature = "INIntentResponse")]
112impl INStartVideoCallIntentResponse {
113    extern_methods!(
114        #[unsafe(method(new))]
115        #[unsafe(method_family = new)]
116        pub unsafe fn new() -> Retained<Self>;
117    );
118}