use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
#[deprecated = "INStartPhotoPlaybackIntentResponseCode is deprecated. There is no replacement."]
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct INStartPhotoPlaybackIntentResponseCode(pub NSInteger);
impl INStartPhotoPlaybackIntentResponseCode {
#[doc(alias = "INStartPhotoPlaybackIntentResponseCodeUnspecified")]
#[deprecated = "INStartPhotoPlaybackIntentResponseCode is deprecated. There is no replacement."]
pub const Unspecified: Self = Self(0);
#[doc(alias = "INStartPhotoPlaybackIntentResponseCodeReady")]
#[deprecated = "INStartPhotoPlaybackIntentResponseCode is deprecated. There is no replacement."]
pub const Ready: Self = Self(1);
#[doc(alias = "INStartPhotoPlaybackIntentResponseCodeContinueInApp")]
#[deprecated = "INStartPhotoPlaybackIntentResponseCode is deprecated. There is no replacement."]
pub const ContinueInApp: Self = Self(2);
#[doc(alias = "INStartPhotoPlaybackIntentResponseCodeFailure")]
#[deprecated = "INStartPhotoPlaybackIntentResponseCode is deprecated. There is no replacement."]
pub const Failure: Self = Self(3);
#[doc(alias = "INStartPhotoPlaybackIntentResponseCodeFailureRequiringAppLaunch")]
#[deprecated = "INStartPhotoPlaybackIntentResponseCode is deprecated. There is no replacement."]
pub const FailureRequiringAppLaunch: Self = Self(4);
#[doc(alias = "INStartPhotoPlaybackIntentResponseCodeFailureAppConfigurationRequired")]
#[deprecated = "INStartPhotoPlaybackIntentResponseCode is deprecated. There is no replacement."]
pub const FailureAppConfigurationRequired: Self = Self(5);
}
unsafe impl Encode for INStartPhotoPlaybackIntentResponseCode {
const ENCODING: Encoding = NSInteger::ENCODING;
}
unsafe impl RefEncode for INStartPhotoPlaybackIntentResponseCode {
const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}
extern_class!(
#[unsafe(super(INIntentResponse, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntentResponse")]
#[deprecated = "INStartPhotoPlaybackIntentResponse is deprecated. There is no replacement."]
pub struct INStartPhotoPlaybackIntentResponse;
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCoding for INStartPhotoPlaybackIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSCopying for INStartPhotoPlaybackIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
unsafe impl CopyingHelper for INStartPhotoPlaybackIntentResponse {
type Result = Self;
}
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSObjectProtocol for INStartPhotoPlaybackIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
extern_conformance!(
unsafe impl NSSecureCoding for INStartPhotoPlaybackIntentResponse {}
);
#[cfg(feature = "INIntentResponse")]
impl INStartPhotoPlaybackIntentResponse {
extern_methods!(
#[deprecated = "INStartPhotoPlaybackIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[deprecated = "INStartPhotoPlaybackIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(initWithCode:userActivity:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCode_userActivity(
this: Allocated<Self>,
code: INStartPhotoPlaybackIntentResponseCode,
user_activity: Option<&NSUserActivity>,
) -> Retained<Self>;
#[deprecated = "INStartPhotoPlaybackIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(code))]
#[unsafe(method_family = none)]
pub unsafe fn code(&self) -> INStartPhotoPlaybackIntentResponseCode;
#[deprecated = "INStartPhotoPlaybackIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(searchResultsCount))]
#[unsafe(method_family = none)]
pub unsafe fn searchResultsCount(&self) -> Option<Retained<NSNumber>>;
#[deprecated = "INStartPhotoPlaybackIntentResponse is deprecated. There is no replacement."]
#[unsafe(method(setSearchResultsCount:))]
#[unsafe(method_family = none)]
pub unsafe fn setSearchResultsCount(&self, search_results_count: Option<&NSNumber>);
);
}
#[cfg(feature = "INIntentResponse")]
impl INStartPhotoPlaybackIntentResponse {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}