[]Struct jni_android_sys::android::speech::SpeechRecognizer

#[repr(transparent)]
pub struct 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]

isRecognitionAvailable

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]

createSpeechRecognizer

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]

createSpeechRecognizer

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]

setRecognitionListener

Required features: "android-speech-RecognitionListener"

pub fn startListening<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Intent>>
) -> Result<(), Local<'env, Throwable>>
[src]

startListening

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]

getClass

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]

equals

Required features: "java-lang-Object"

pub fn toString<'env>(
    &'env self
) -> Result<Option<Local<'env, String>>, Local<'env, Throwable>>
[src]

toString

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]

pub fn wait_long_int<'env>(
    &'env self,
    arg0: i64,
    arg1: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

type Target = Object

The resulting type after dereferencing.

impl JniType for SpeechRecognizer

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.