[]Struct jni_android_sys::android::view::inputmethod::InputConnection

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

public interface InputConnection

Required feature: android-view-inputmethod-InputConnection

Methods

impl InputConnection

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

getTextBeforeCursor

Required features: "java-lang-CharSequence"

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

getTextAfterCursor

Required features: "java-lang-CharSequence"

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

getSelectedText

Required features: "java-lang-CharSequence"

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

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

getExtractedText

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

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

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

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

setComposingText

Required features: "java-lang-CharSequence"

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

pub fn finish_composing_text<'env>(&'env self) -> Result<bool>[src]

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

commitText

Required features: "java-lang-CharSequence"

pub fn commit_completion<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CompletionInfo>>
) -> Result<bool>
[src]

commitCompletion

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

pub fn commit_correction<'env>(
    &'env self,
    arg0: impl Into<Option<&'env CorrectionInfo>>
) -> Result<bool>
[src]

commitCorrection

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

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

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

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

pub fn begin_batch_edit<'env>(&'env self) -> Result<bool>[src]

pub fn end_batch_edit<'env>(&'env self) -> Result<bool>[src]

pub fn send_key_event<'env>(
    &'env self,
    arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
[src]

sendKeyEvent

Required features: "android-view-KeyEvent"

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

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

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

performPrivateCommand

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

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

pub fn get_handler<'env>(&'env self) -> Result<Option<Local<'env, Handler>>>[src]

getHandler

Required features: "android-os-Handler"

pub fn close_connection<'env>(&'env self) -> Result<()>[src]

pub fn commit_content<'env>(
    &'env self,
    arg0: impl Into<Option<&'env InputContentInfo>>,
    arg1: i32,
    arg2: impl Into<Option<&'env Bundle>>
) -> Result<bool>
[src]

commitContent

Required features: "android-os-Bundle", "android-view-inputmethod-InputContentInfo"

pub const CURSOR_UPDATE_IMMEDIATE: i32[src]

public static final CURSOR_UPDATE_IMMEDIATE

pub const CURSOR_UPDATE_MONITOR: i32[src]

public static final CURSOR_UPDATE_MONITOR

pub const GET_EXTRACTED_TEXT_MONITOR: i32[src]

public static final GET_EXTRACTED_TEXT_MONITOR

pub const GET_TEXT_WITH_STYLES: i32[src]

public static final GET_TEXT_WITH_STYLES

pub const INPUT_CONTENT_GRANT_READ_URI_PERMISSION: i32[src]

Methods from Deref<Target = Object>

pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]

getClass

Required features: "java-lang-Class"

pub fn hash_code<'env>(&'env self) -> Result<i32>[src]

pub fn equals<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
[src]

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

pub fn notify<'env>(&'env self) -> Result<()>[src]

pub fn notify_all<'env>(&'env self) -> Result<()>[src]

pub fn wait_long<'env>(&'env self, arg0: i64) -> Result<()>[src]

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

pub fn wait<'env>(&'env self) -> Result<()>[src]

Trait Implementations

impl AsRef<InputConnection> for BaseInputConnection

impl AsRef<InputConnection> for InputConnectionWrapper

impl Deref for InputConnection

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for InputConnection

impl AsJValue for InputConnection

Auto Trait Implementations

Blanket Implementations

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

impl<T> From<T> for 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.

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

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

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