objc2-speech 0.3.2

Bindings to the Speech framework
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;

use crate::*;

/// The type of task for which you are using speech recognition.
///
/// See also [Apple's documentation](https://developer.apple.com/documentation/speech/sfspeechrecognitiontaskhint?language=objc)
// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct SFSpeechRecognitionTaskHint(pub NSInteger);
impl SFSpeechRecognitionTaskHint {
    /// An unspecified type of task.
    ///
    /// Use this hint type when the intended use for captured speech does not match the other task types.
    #[doc(alias = "SFSpeechRecognitionTaskHintUnspecified")]
    pub const Unspecified: Self = Self(0);
    /// A task that uses captured speech for text entry.
    ///
    /// Use this hint type when you are using speech recognition for a task that's similar to the keyboard's built-in dictation function.
    #[doc(alias = "SFSpeechRecognitionTaskHintDictation")]
    pub const Dictation: Self = Self(1);
    /// A task that uses captured speech to specify search terms.
    ///
    /// Use this hint type when you are using speech recognition to identify search terms.
    #[doc(alias = "SFSpeechRecognitionTaskHintSearch")]
    pub const Search: Self = Self(2);
    /// A task that uses captured speech for short, confirmation-style requests.
    ///
    /// Use this hint type when you are using speech recognition to handle confirmation commands, such as "yes," "no," or "maybe."
    #[doc(alias = "SFSpeechRecognitionTaskHintConfirmation")]
    pub const Confirmation: Self = Self(3);
}

unsafe impl Encode for SFSpeechRecognitionTaskHint {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for SFSpeechRecognitionTaskHint {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}