[]Struct jni_android_sys::android::app::VoiceInteractor_PickOptionRequest

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

public class VoiceInteractor.PickOptionRequest

Required feature: "android-app-VoiceInteractor_PickOptionRequest"

Methods

impl VoiceInteractor_PickOptionRequest

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env VoiceInteractor_Prompt>>,
    arg1: impl Into<Option<&'env ObjectArray<VoiceInteractor_PickOptionRequest_Option, Throwable>>>,
    arg2: impl Into<Option<&'env Bundle>>
) -> Result<Local<'env, VoiceInteractor_PickOptionRequest>, Local<'env, Throwable>>
[src]

PickOptionRequest

Required features: "android-app-VoiceInteractor_PickOptionRequest_Option", "android-app-VoiceInteractor_Prompt", "android-os-Bundle"

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

onPickOptionResult

Required features: "android-app-VoiceInteractor_PickOptionRequest_Option", "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_PickOptionRequest

impl AsValidJObjectAndEnv for VoiceInteractor_PickOptionRequest

impl Deref for VoiceInteractor_PickOptionRequest

type Target = VoiceInteractor_Request

The resulting type after dereferencing.

impl JniType for VoiceInteractor_PickOptionRequest

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.