[]Struct jni_android_sys::android::app::VoiceInteractor_CommandRequest

#[repr(transparent)]
pub struct VoiceInteractor_CommandRequest(_);

public class VoiceInteractor.CommandRequest

Required feature: "android-app-VoiceInteractor_CommandRequest"

Methods

impl VoiceInteractor_CommandRequest

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<Local<'env, VoiceInteractor_CommandRequest>, Local<'env, Throwable>>
[src]

CommandRequest

Required features: "android-os-Bundle", "java-lang-String"

pub fn onCommandResult<'env>(
    &'env self,
    arg0: bool,
    arg1: impl Into<Option<&'env Bundle>>
) -> Result<(), Local<'env, Throwable>>
[src]

onCommandResult

Required features: "android-os-Bundle"

Methods from Deref<Target = VoiceInteractor_Request>

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

getName

Required features: "java-lang-String"

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

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

getContext

Required features: "android-content-Context"

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

getActivity

Required features: "android-app-Activity"

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

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

onAttached

Required features: "android-app-Activity"

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

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

toString

Required features: "java-lang-String"

Trait Implementations

impl AsJValue for VoiceInteractor_CommandRequest

impl AsValidJObjectAndEnv for VoiceInteractor_CommandRequest

impl Deref for VoiceInteractor_CommandRequest

type Target = VoiceInteractor_Request

The resulting type after dereferencing.

impl JniType for VoiceInteractor_CommandRequest

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.