use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(INIntent, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "INIntent")]
#[deprecated = "INCreateTaskListIntent is deprecated. There is no replacement."]
pub struct INCreateTaskListIntent;
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCoding for INCreateTaskListIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSCopying for INCreateTaskListIntent {}
);
#[cfg(feature = "INIntent")]
unsafe impl CopyingHelper for INCreateTaskListIntent {
type Result = Self;
}
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSObjectProtocol for INCreateTaskListIntent {}
);
#[cfg(feature = "INIntent")]
extern_conformance!(
unsafe impl NSSecureCoding for INCreateTaskListIntent {}
);
#[cfg(feature = "INIntent")]
impl INCreateTaskListIntent {
extern_methods!(
#[cfg(feature = "INSpeakableString")]
#[deprecated = "INCreateTaskListIntent is deprecated. There is no replacement."]
#[unsafe(method(initWithTitle:taskTitles:groupName:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithTitle_taskTitles_groupName(
this: Allocated<Self>,
title: Option<&INSpeakableString>,
task_titles: Option<&NSArray<INSpeakableString>>,
group_name: Option<&INSpeakableString>,
) -> Retained<Self>;
#[cfg(feature = "INSpeakableString")]
#[deprecated = "INCreateTaskListIntent is deprecated. There is no replacement."]
#[unsafe(method(title))]
#[unsafe(method_family = none)]
pub unsafe fn title(&self) -> Option<Retained<INSpeakableString>>;
#[cfg(feature = "INSpeakableString")]
#[deprecated = "INCreateTaskListIntent is deprecated. There is no replacement."]
#[unsafe(method(taskTitles))]
#[unsafe(method_family = none)]
pub unsafe fn taskTitles(&self) -> Option<Retained<NSArray<INSpeakableString>>>;
#[cfg(feature = "INSpeakableString")]
#[deprecated = "INCreateTaskListIntent is deprecated. There is no replacement."]
#[unsafe(method(groupName))]
#[unsafe(method_family = none)]
pub unsafe fn groupName(&self) -> Option<Retained<INSpeakableString>>;
);
}
#[cfg(feature = "INIntent")]
impl INCreateTaskListIntent {
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 = "INCreateTaskListIntentHandling is deprecated. There is no replacement."]
pub unsafe trait INCreateTaskListIntentHandling: NSObjectProtocol {
#[cfg(all(
feature = "INCreateTaskListIntentResponse",
feature = "INIntent",
feature = "INIntentResponse",
feature = "block2"
))]
#[deprecated = "INCreateTaskListIntentHandling is deprecated. There is no replacement."]
#[unsafe(method(handleCreateTaskList:completion:))]
#[unsafe(method_family = none)]
unsafe fn handleCreateTaskList_completion(
&self,
intent: &INCreateTaskListIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INCreateTaskListIntentResponse>)>,
);
#[cfg(all(
feature = "INCreateTaskListIntentResponse",
feature = "INIntent",
feature = "INIntentResponse",
feature = "block2"
))]
#[deprecated = "INCreateTaskListIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(confirmCreateTaskList:completion:))]
#[unsafe(method_family = none)]
unsafe fn confirmCreateTaskList_completion(
&self,
intent: &INCreateTaskListIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INCreateTaskListIntentResponse>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INSpeakableStringResolutionResult",
feature = "block2"
))]
#[deprecated = "INCreateTaskListIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveTitleForCreateTaskList:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTitleForCreateTaskList_withCompletion(
&self,
intent: &INCreateTaskListIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSpeakableStringResolutionResult>)>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INSpeakableStringResolutionResult",
feature = "block2"
))]
#[deprecated = "INCreateTaskListIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveTaskTitlesForCreateTaskList:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveTaskTitlesForCreateTaskList_withCompletion(
&self,
intent: &INCreateTaskListIntent,
completion: &block2::DynBlock<
dyn Fn(NonNull<NSArray<INSpeakableStringResolutionResult>>),
>,
);
#[cfg(all(
feature = "INIntent",
feature = "INIntentResolutionResult",
feature = "INSpeakableStringResolutionResult",
feature = "block2"
))]
#[deprecated = "INCreateTaskListIntentHandling is deprecated. There is no replacement."]
#[optional]
#[unsafe(method(resolveGroupNameForCreateTaskList:withCompletion:))]
#[unsafe(method_family = none)]
unsafe fn resolveGroupNameForCreateTaskList_withCompletion(
&self,
intent: &INCreateTaskListIntent,
completion: &block2::DynBlock<dyn Fn(NonNull<INSpeakableStringResolutionResult>)>,
);
}
);