use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-core-location")]
use objc2_core_location::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(INIntent, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntent")]
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
pub struct INStartPhotoPlaybackIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INStartPhotoPlaybackIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INStartPhotoPlaybackIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INStartPhotoPlaybackIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INStartPhotoPlaybackIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INStartPhotoPlaybackIntent {}
);
#[cfg(feature = "INIntent")]
impl INStartPhotoPlaybackIntent {
extern_methods!(
#[cfg(all(
feature = "INDateComponentsRange",
feature = "INPerson",
feature = "INPhotoAttributeOptions",
feature = "objc2-core-location"
))]
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(initWithDateCreated:locationCreated:albumName:searchTerms:includedAttributes:excludedAttributes:peopleInPhoto:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithDateCreated_locationCreated_albumName_searchTerms_includedAttributes_excludedAttributes_peopleInPhoto(
this: Allocated<Self>,
date_created: Option<&INDateComponentsRange>,
location_created: Option<&CLPlacemark>,
album_name: Option<&NSString>,
search_terms: Option<&NSArray<NSString>>,
included_attributes: INPhotoAttributeOptions,
excluded_attributes: INPhotoAttributeOptions,
people_in_photo: Option<&NSArray<INPerson>>,
) -> Retained<Self>;
#[cfg(feature = "INDateComponentsRange")]
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(dateCreated))]
#[unsafe(method_family = none)]
pub unsafe fn dateCreated(&self) -> Option<Retained<INDateComponentsRange>>;
#[cfg(feature = "objc2-core-location")]
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(locationCreated))]
#[unsafe(method_family = none)]
pub unsafe fn locationCreated(&self) -> Option<Retained<CLPlacemark>>;
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(albumName))]
#[unsafe(method_family = none)]
pub unsafe fn albumName(&self) -> Option<Retained<NSString>>;
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(searchTerms))]
#[unsafe(method_family = none)]
pub unsafe fn searchTerms(&self) -> Option<Retained<NSArray<NSString>>>;
#[cfg(feature = "INConditionalOperator")]
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(searchTermsOperator))]
#[unsafe(method_family = none)]
pub unsafe fn searchTermsOperator(&self) -> INConditionalOperator;
#[cfg(feature = "INPhotoAttributeOptions")]
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(includedAttributes))]
#[unsafe(method_family = none)]
pub unsafe fn includedAttributes(&self) -> INPhotoAttributeOptions;
#[cfg(feature = "INPhotoAttributeOptions")]
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(excludedAttributes))]
#[unsafe(method_family = none)]
pub unsafe fn excludedAttributes(&self) -> INPhotoAttributeOptions;
#[cfg(feature = "INPerson")]
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(peopleInPhoto))]
#[unsafe(method_family = none)]
pub unsafe fn peopleInPhoto(&self) -> Option<Retained<NSArray<INPerson>>>;
#[cfg(feature = "INConditionalOperator")]
#[deprecated = "INStartPhotoPlaybackIntent is deprecated. There is no replacement."]
#[unsafe(method(peopleInPhotoOperator))]
#[unsafe(method_family = none)]
pub unsafe fn peopleInPhotoOperator(&self) -> INConditionalOperator;
);
}
#[cfg(feature = "INIntent")]
impl INStartPhotoPlaybackIntent {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}
extern_protocol!(
#[deprecated = "INStartPhotoPlaybackIntentHandling is deprecated. There is no replacement."]
pub unsafe trait INStartPhotoPlaybackIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INStartPhotoPlaybackIntentResponse",
feature = "block2"
))]
#[deprecated = "INStartPhotoPlaybackIntentHandling is deprecated. There is no replacement."]
#[unsafe(method(handleStartPhotoPlayback:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleStartPhotoPlayback_completion(
&self,
intent: &INStartPhotoPlaybackIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INStartPhotoPlaybackIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResponse",
feature = "INStartPhotoPlaybackIntentResponse",
feature = "block2"
))]
#[deprecated = "INStartPhotoPlaybackIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(confirmStartPhotoPlayback:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmStartPhotoPlayback_completion(
&self,
intent: &INStartPhotoPlaybackIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INStartPhotoPlaybackIntentResponse>)>,
);
#[cfg(all(
feature = "INDateComponentsRangeResolutionResult",
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "block2"
))]
#[deprecated = "INStartPhotoPlaybackIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveDateCreatedForStartPhotoPlayback:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveDateCreatedForStartPhotoPlayback_withCompletion(
&self,
intent: &INStartPhotoPlaybackIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INDateComponentsRangeResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INPlacemarkResolutionResult",
feature = "block2"
))]
#[deprecated = "INStartPhotoPlaybackIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveLocationCreatedForStartPhotoPlayback:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveLocationCreatedForStartPhotoPlayback_withCompletion(
&self,
intent: &INStartPhotoPlaybackIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INPlacemarkResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INStringResolutionResult",
feature = "block2"
))]
#[deprecated = "INStartPhotoPlaybackIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveAlbumNameForStartPhotoPlayback:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveAlbumNameForStartPhotoPlayback_withCompletion(
&self,
intent: &INStartPhotoPlaybackIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INStringResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INPersonResolutionResult",
feature = "block2"
))]
#[deprecated = "INStartPhotoPlaybackIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolvePeopleInPhotoForStartPhotoPlayback:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolvePeopleInPhotoForStartPhotoPlayback_withCompletion(
&self,
intent: &INStartPhotoPlaybackIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<NSArray<INPersonResolutionResult>>)>,
);
}
);