objc2_intents/generated/
INSpeakableString.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_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/intents/inspeakablestring?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct INSpeakableString;
14);
15
16#[cfg(feature = "INSpeakable")]
17extern_conformance!(
18    unsafe impl INSpeakable for INSpeakableString {}
19);
20
21extern_conformance!(
22    unsafe impl NSCoding for INSpeakableString {}
23);
24
25extern_conformance!(
26    unsafe impl NSCopying for INSpeakableString {}
27);
28
29unsafe impl CopyingHelper for INSpeakableString {
30    type Result = Self;
31}
32
33extern_conformance!(
34    unsafe impl NSObjectProtocol for INSpeakableString {}
35);
36
37extern_conformance!(
38    unsafe impl NSSecureCoding for INSpeakableString {}
39);
40
41impl INSpeakableString {
42    extern_methods!(
43        #[unsafe(method(init))]
44        #[unsafe(method_family = init)]
45        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
46
47        #[unsafe(method(initWithVocabularyIdentifier:spokenPhrase:pronunciationHint:))]
48        #[unsafe(method_family = init)]
49        pub unsafe fn initWithVocabularyIdentifier_spokenPhrase_pronunciationHint(
50            this: Allocated<Self>,
51            vocabulary_identifier: &NSString,
52            spoken_phrase: &NSString,
53            pronunciation_hint: Option<&NSString>,
54        ) -> Retained<Self>;
55
56        #[deprecated = "Please use -initWithVocabularyIdentifier:spokenPhrase:pronunciationHint:"]
57        #[unsafe(method(initWithIdentifier:spokenPhrase:pronunciationHint:))]
58        #[unsafe(method_family = init)]
59        pub unsafe fn initWithIdentifier_spokenPhrase_pronunciationHint(
60            this: Allocated<Self>,
61            identifier: &NSString,
62            spoken_phrase: &NSString,
63            pronunciation_hint: Option<&NSString>,
64        ) -> Retained<Self>;
65
66        #[unsafe(method(initWithSpokenPhrase:))]
67        #[unsafe(method_family = init)]
68        pub unsafe fn initWithSpokenPhrase(
69            this: Allocated<Self>,
70            spoken_phrase: &NSString,
71        ) -> Retained<Self>;
72    );
73}
74
75/// Methods declared on superclass `NSObject`.
76impl INSpeakableString {
77    extern_methods!(
78        #[unsafe(method(new))]
79        #[unsafe(method_family = new)]
80        pub unsafe fn new() -> Retained<Self>;
81    );
82}