objc2_intents/generated/
INVoiceShortcutCenter.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
17 #[derive(Debug, PartialEq, Eq, Hash)]
18 pub struct INVoiceShortcutCenter;
19);
20
21extern_conformance!(
22 unsafe impl NSObjectProtocol for INVoiceShortcutCenter {}
23);
24
25impl INVoiceShortcutCenter {
26 extern_methods!(
27 #[unsafe(method(sharedCenter))]
28 #[unsafe(method_family = none)]
29 pub unsafe fn sharedCenter() -> Retained<INVoiceShortcutCenter>;
30
31 #[unsafe(method(new))]
34 #[unsafe(method_family = new)]
35 pub unsafe fn new() -> Retained<Self>;
36
37 #[unsafe(method(init))]
40 #[unsafe(method_family = init)]
41 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42
43 #[cfg(all(feature = "INVoiceShortcut", feature = "block2"))]
44 #[unsafe(method(getAllVoiceShortcutsWithCompletion:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn getAllVoiceShortcutsWithCompletion(
49 &self,
50 completion_handler: &block2::DynBlock<
51 dyn Fn(*mut NSArray<INVoiceShortcut>, *mut NSError),
52 >,
53 );
54
55 #[cfg(all(feature = "INVoiceShortcut", feature = "block2"))]
56 #[unsafe(method(getVoiceShortcutWithIdentifier:completion:))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn getVoiceShortcutWithIdentifier_completion(
60 &self,
61 identifier: &NSUUID,
62 completion_handler: &block2::DynBlock<dyn Fn(*mut INVoiceShortcut, *mut NSError)>,
63 );
64
65 #[cfg(feature = "INShortcut")]
66 #[unsafe(method(setShortcutSuggestions:))]
70 #[unsafe(method_family = none)]
71 pub unsafe fn setShortcutSuggestions(&self, suggestions: &NSArray<INShortcut>);
72 );
73}