[−]Struct jni_android_sys::android::speech::SpeechRecognizer
public class SpeechRecognizer
Required feature: "android-speech-SpeechRecognizer"
Methods
impl SpeechRecognizer
pub fn isRecognitionAvailable<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<bool, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "android-content-Context"
pub fn createSpeechRecognizer_Context<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, SpeechRecognizer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>
) -> Result<Option<Local<'env, SpeechRecognizer>>, Local<'env, Throwable>>
Required features: "android-content-Context", "android-speech-SpeechRecognizer"
pub fn createSpeechRecognizer_Context_ComponentName<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env ComponentName>>
) -> Result<Option<Local<'env, SpeechRecognizer>>, Local<'env, Throwable>>
[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Context>>,
arg1: impl Into<Option<&'env ComponentName>>
) -> Result<Option<Local<'env, SpeechRecognizer>>, Local<'env, Throwable>>
Required features: "android-content-ComponentName", "android-content-Context", "android-speech-SpeechRecognizer"
pub fn setRecognitionListener<'env>(
&'env self,
arg0: impl Into<Option<&'env RecognitionListener>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env RecognitionListener>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-speech-RecognitionListener"
pub fn startListening<'env>(
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-Intent"
pub fn stopListening<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn cancel<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn destroy<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub const CONFIDENCE_SCORES: &'static str
[src]
public static final CONFIDENCE_SCORES
pub const ERROR_AUDIO: i32
[src]
public static final ERROR_AUDIO
pub const ERROR_CLIENT: i32
[src]
public static final ERROR_CLIENT
pub const ERROR_INSUFFICIENT_PERMISSIONS: i32
[src]
public static final ERROR_INSUFFICIENT_PERMISSIONS
pub const ERROR_NETWORK: i32
[src]
public static final ERROR_NETWORK
pub const ERROR_NETWORK_TIMEOUT: i32
[src]
public static final ERROR_NETWORK_TIMEOUT
pub const ERROR_NO_MATCH: i32
[src]
public static final ERROR_NO_MATCH
pub const ERROR_RECOGNIZER_BUSY: i32
[src]
public static final ERROR_RECOGNIZER_BUSY
pub const ERROR_SERVER: i32
[src]
public static final ERROR_SERVER
pub const ERROR_SPEECH_TIMEOUT: i32
[src]
public static final ERROR_SPEECH_TIMEOUT
pub const RESULTS_RECOGNITION: &'static str
[src]
public static final RESULTS_RECOGNITION
Methods from Deref<Target = Object>
pub fn getClass<'env>(
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Class>>, Local<'env, Throwable>>
Required features: "java-lang-Class"
pub fn hashCode<'env>(&'env self) -> Result<i32, Local<'env, Throwable>>
[src]
pub fn equals<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn toString<'env>(
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
Required features: "java-lang-String"
pub fn notify<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn notifyAll<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
pub fn wait_long<'env>(
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64
) -> Result<(), Local<'env, Throwable>>
pub fn wait_long_int<'env>(
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i64,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
pub fn wait<'env>(&'env self) -> Result<(), Local<'env, Throwable>>
[src]
Trait Implementations
impl AsJValue for SpeechRecognizer
impl AsValidJObjectAndEnv for SpeechRecognizer
impl Deref for SpeechRecognizer
impl JniType for SpeechRecognizer
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for SpeechRecognizer
impl !Send for SpeechRecognizer
impl !Sync for SpeechRecognizer
impl Unpin for SpeechRecognizer
impl UnwindSafe for SpeechRecognizer
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,