use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct INStartVideoCallIntentResponseCode(pub NSInteger);
impl INStartVideoCallIntentResponseCode {
#[doc(alias = "INStartVideoCallIntentResponseCodeUnspecified")]
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
pub const Unspecified: Self = Self(0);
#[doc(alias = "INStartVideoCallIntentResponseCodeReady")]
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
pub const Ready: Self = Self(1);
#[doc(alias = "INStartVideoCallIntentResponseCodeContinueInApp")]
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
pub const ContinueInApp: Self = Self(2);
#[doc(alias = "INStartVideoCallIntentResponseCodeFailure")]
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
pub const Failure: Self = Self(3);
#[doc(alias = "INStartVideoCallIntentResponseCodeFailureRequiringAppLaunch")]
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
pub const FailureRequiringAppLaunch: Self = Self(4);
#[doc(alias = "INStartVideoCallIntentResponseCodeFailureAppConfigurationRequired")]
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
pub const FailureAppConfigurationRequired: Self = Self(5);
#[doc(alias = "INStartVideoCallIntentResponseCodeFailureCallingServiceNotAvailable")]
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
pub const FailureCallingServiceNotAvailable: Self = Self(6);
#[doc(alias = "INStartVideoCallIntentResponseCodeFailureContactNotSupportedByApp")]
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
pub const FailureContactNotSupportedByApp: Self = Self(7);
#[doc(alias = "INStartVideoCallIntentResponseCodeFailureInvalidNumber")]
pub const FailureInvalidNumber: Self = Self(8);
}
unsafe impl Encode for INStartVideoCallIntentResponseCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for INStartVideoCallIntentResponseCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(INIntentResponse, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntentResponse")]
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
pub struct INStartVideoCallIntentResponse;
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCoding for INStartVideoCallIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCopying for INStartVideoCallIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
unsafe impl CopyingHelper for INStartVideoCallIntentResponse {
type Result = Self;
}
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSObjectProtocol for INStartVideoCallIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSSecureCoding for INStartVideoCallIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
impl INStartVideoCallIntentResponse {
extern_methods!(
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
#[unsafe(method(initWithCode:userActivity:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCode_userActivity(
this: Allocated<Self>,
code: INStartVideoCallIntentResponseCode,
user_activity: Option<&NSUserActivity>,
) -> Retained<Self>;
#[deprecated = "INStartVideoCallIntent is deprecated. Please adopt INStartCallIntent instead"]
#[unsafe(method(code))]
#[unsafe(method_family = none)]
pub unsafe fn code(&self) -> INStartVideoCallIntentResponseCode;
);
}
#[cfg(feature = "INIntentResponse")]
impl INStartVideoCallIntentResponse {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}