objc2_intents/generated/
INSpeakable.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_protocol!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inspeakable?language=objc)
11    pub unsafe trait INSpeakable: NSObjectProtocol {
12        #[unsafe(method(spokenPhrase))]
13        #[unsafe(method_family = none)]
14        unsafe fn spokenPhrase(&self) -> Retained<NSString>;
15
16        #[unsafe(method(pronunciationHint))]
17        #[unsafe(method_family = none)]
18        unsafe fn pronunciationHint(&self) -> Option<Retained<NSString>>;
19
20        #[unsafe(method(vocabularyIdentifier))]
21        #[unsafe(method_family = none)]
22        unsafe fn vocabularyIdentifier(&self) -> Option<Retained<NSString>>;
23
24        #[unsafe(method(alternativeSpeakableMatches))]
25        #[unsafe(method_family = none)]
26        unsafe fn alternativeSpeakableMatches(
27            &self,
28        ) -> Option<Retained<NSArray<ProtocolObject<dyn INSpeakable>>>>;
29
30        #[deprecated = "Please use vocabularyIdentifier"]
31        #[optional]
32        #[unsafe(method(identifier))]
33        #[unsafe(method_family = none)]
34        unsafe fn identifier(&self) -> Option<Retained<NSString>>;
35    }
36);