[]Struct jni_android_sys::android::service::voice::VoiceInteractionSession

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

public class VoiceInteractionSession

Required feature: "android-service-voice-VoiceInteractionSession"

Methods

impl VoiceInteractionSession

pub fn new_Context<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, VoiceInteractionSession>, Local<'env, Throwable>>
[src]

VoiceInteractionSession

Required features: "android-content-Context"

pub fn new_Context_Handler<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env Handler>>
) -> Result<Local<'env, VoiceInteractionSession>, Local<'env, Throwable>>
[src]

VoiceInteractionSession

Required features: "android-content-Context", "android-os-Handler"

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

getContext

Required features: "android-content-Context"

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

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

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

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

show

Required features: "android-os-Bundle"

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

pub fn setUiEnabled<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

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

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

startVoiceActivity

Required features: "android-content-Intent"

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

startAssistantActivity

Required features: "android-content-Intent"

pub fn setKeepAwake<'env>(
    &'env self,
    arg0: bool
) -> Result<(), Local<'env, Throwable>>
[src]

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

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

getLayoutInflater

Required features: "android-view-LayoutInflater"

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

getWindow

Required features: "android-app-Dialog"

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

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

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

onPrepareShow

Required features: "android-os-Bundle"

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

onShow

Required features: "android-os-Bundle"

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

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

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

onCreateContentView

Required features: "android-view-View"

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

setContentView

Required features: "android-view-View"

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

onAssistStructureFailure

Required features: "java-lang-Throwable"

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

onHandleAssist

Required features: "android-app-assist-AssistContent", "android-app-assist-AssistStructure", "android-os-Bundle"

pub fn onHandleAssistSecondary<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Bundle>>,
    arg1: impl Into<Option<&'env AssistStructure>>,
    arg2: impl Into<Option<&'env AssistContent>>,
    arg3: i32,
    arg4: i32
) -> Result<(), Local<'env, Throwable>>
[src]

onHandleAssistSecondary

Required features: "android-app-assist-AssistContent", "android-app-assist-AssistStructure", "android-os-Bundle"

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

onHandleScreenshot

Required features: "android-graphics-Bitmap"

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

onKeyDown

Required features: "android-view-KeyEvent"

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

onKeyLongPress

Required features: "android-view-KeyEvent"

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

onKeyUp

Required features: "android-view-KeyEvent"

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

onKeyMultiple

Required features: "android-view-KeyEvent"

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

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

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

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

onConfigurationChanged

Required features: "android-content-res-Configuration"

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

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

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

onComputeInsets

Required features: "android-service-voice-VoiceInteractionSession_Insets"

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

onTaskStarted

Required features: "android-content-Intent"

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

onTaskFinished

Required features: "android-content-Intent"

pub fn onGetSupportedCommands<'env>(
    &'env self,
    arg0: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<Option<Local<'env, BooleanArray>>, Local<'env, Throwable>>
[src]

onGetSupportedCommands

Required features: "java-lang-String"

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

onRequestConfirmation

Required features: "android-service-voice-VoiceInteractionSession_ConfirmationRequest"

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

onRequestPickOption

Required features: "android-service-voice-VoiceInteractionSession_PickOptionRequest"

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

onRequestCompleteVoice

Required features: "android-service-voice-VoiceInteractionSession_CompleteVoiceRequest"

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

onRequestAbortVoice

Required features: "android-service-voice-VoiceInteractionSession_AbortVoiceRequest"

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

onRequestCommand

Required features: "android-service-voice-VoiceInteractionSession_CommandRequest"

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

onCancelRequest

Required features: "android-service-voice-VoiceInteractionSession_Request"

pub fn dump<'env>(
    &'env self,
    arg0: impl Into<Option<&'env String>>,
    arg1: impl Into<Option<&'env FileDescriptor>>,
    arg2: impl Into<Option<&'env PrintWriter>>,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]

dump

Required features: "java-io-FileDescriptor", "java-io-PrintWriter", "java-lang-String"

pub const SHOW_SOURCE_ACTIVITY: i32[src]

public static final SHOW_SOURCE_ACTIVITY

pub const SHOW_SOURCE_APPLICATION: i32[src]

public static final SHOW_SOURCE_APPLICATION

pub const SHOW_SOURCE_ASSIST_GESTURE: i32[src]

public static final SHOW_SOURCE_ASSIST_GESTURE

pub const SHOW_WITH_ASSIST: i32[src]

public static final SHOW_WITH_ASSIST

pub const SHOW_WITH_SCREENSHOT: i32[src]

public static final SHOW_WITH_SCREENSHOT

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 VoiceInteractionSession

impl AsRef<ComponentCallbacks2> for VoiceInteractionSession

impl AsRef<KeyEvent_Callback> for VoiceInteractionSession

impl AsValidJObjectAndEnv for VoiceInteractionSession

impl Deref for VoiceInteractionSession

type Target = Object

The resulting type after dereferencing.

impl JniType for VoiceInteractionSession

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.