[]Struct jni_android_sys::android::inputmethodservice::InputMethodService

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

public class InputMethodService

Required feature: "android-inputmethodservice-InputMethodService"

Methods

impl InputMethodService

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, InputMethodService>, Local<'env, Throwable>>
[src]

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

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

Deprecated

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

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

pub fn onDestroy<'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 onCreateInputMethodInterface<'env>(
    &'env self
) -> Result<Option<Local<'env, AbstractInputMethodService_AbstractInputMethodImpl>>, Local<'env, Throwable>>
[src]

onCreateInputMethodInterface

Required features: "android-inputmethodservice-AbstractInputMethodService_AbstractInputMethodImpl"

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

onCreateInputMethodSessionInterface

Required features: "android-inputmethodservice-AbstractInputMethodService_AbstractInputMethodSessionImpl"

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 setBackDisposition<'env>(
    &'env self,
    arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

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

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

getCurrentInputBinding

Required features: "android-view-inputmethod-InputBinding"

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

getCurrentInputConnection

Required features: "android-view-inputmethod-InputConnection"

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

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

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

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

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

getCurrentInputEditorInfo

Required features: "android-view-inputmethod-EditorInfo"

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

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

onConfigureWindow

Required features: "android-view-Window"

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

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

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

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

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

onComputeInsets

Required features: "android-inputmethodservice-InputMethodService_Insets"

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

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

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

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

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

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

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

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

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

switchInputMethod

Required features: "java-lang-String"

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

switchInputMethod

Required features: "android-view-inputmethod-InputMethodSubtype", "java-lang-String"

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

setExtractView

Required features: "android-view-View"

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

setCandidatesView

Required features: "android-view-View"

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

setInputView

Required features: "android-view-View"

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

onCreateExtractTextView

Required features: "android-view-View"

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

onCreateCandidatesView

Required features: "android-view-View"

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

onCreateInputView

Required features: "android-view-View"

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

onStartInputView

Required features: "android-view-inputmethod-EditorInfo"

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

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

onStartCandidatesView

Required features: "android-view-inputmethod-EditorInfo"

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

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

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

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

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

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

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

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

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

onStartInput

Required features: "android-view-inputmethod-EditorInfo"

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

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

onDisplayCompletions

Required features: "android-view-inputmethod-CompletionInfo"

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

onUpdateExtractedText

Required features: "android-view-inputmethod-ExtractedText"

pub fn onUpdateSelection<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: i32,
    arg3: i32,
    arg4: i32,
    arg5: i32
) -> Result<(), Local<'env, Throwable>>
[src]

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

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

Deprecated

onUpdateCursor

Required features: "android-graphics-Rect"

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

onUpdateCursorAnchorInfo

Required features: "android-view-inputmethod-CursorAnchorInfo"

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

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

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 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 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 onTrackballEvent<'env>(
    &'env self,
    arg0: impl Into<Option<&'env MotionEvent>>
) -> Result<bool, Local<'env, Throwable>>
[src]

onTrackballEvent

Required features: "android-view-MotionEvent"

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

onGenericMotionEvent

Required features: "android-view-MotionEvent"

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

onAppPrivateCommand

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

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

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

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

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

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

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

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

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

getTextForImeAction

Required features: "java-lang-CharSequence"

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

onUpdateExtractingVisibility

Required features: "android-view-inputmethod-EditorInfo"

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

onUpdateExtractingViews

Required features: "android-view-inputmethod-EditorInfo"

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

onExtractingInputChanged

Required features: "android-view-inputmethod-EditorInfo"

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

pub const BACK_DISPOSITION_ADJUST_NOTHING: i32[src]

public static final BACK_DISPOSITION_ADJUST_NOTHING

pub const BACK_DISPOSITION_DEFAULT: i32[src]

public static final BACK_DISPOSITION_DEFAULT

pub const BACK_DISPOSITION_WILL_DISMISS: i32[src]

Deprecated

public static final BACK_DISPOSITION_WILL_DISMISS

pub const BACK_DISPOSITION_WILL_NOT_DISMISS: i32[src]

Deprecated

Methods from Deref<Target = AbstractInputMethodService>

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

getKeyDispatcherState

Required features: "android-view-KeyEvent_DispatcherState"

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

onCreateInputMethodInterface

Required features: "android-inputmethodservice-AbstractInputMethodService_AbstractInputMethodImpl"

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

onCreateInputMethodSessionInterface

Required features: "android-inputmethodservice-AbstractInputMethodService_AbstractInputMethodSessionImpl"

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

onBind

Required features: "android-content-Intent", "android-os-IBinder"

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

onTrackballEvent

Required features: "android-view-MotionEvent"

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

onGenericMotionEvent

Required features: "android-view-MotionEvent"

Trait Implementations

impl AsJValue for InputMethodService

impl AsValidJObjectAndEnv for InputMethodService

impl Deref for InputMethodService

type Target = AbstractInputMethodService

The resulting type after dereferencing.

impl JniType for InputMethodService

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.