[−]Struct jni_android_sys::android::view::inputmethod::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]
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, CharSequence>>>
Required features: "java-lang-CharSequence"
pub fn get_text_after_cursor<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, CharSequence>>>[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<Option<Local<'env, CharSequence>>>
Required features: "java-lang-CharSequence"
pub fn get_selected_text<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, CharSequence>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, CharSequence>>>
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]
&'env self,
arg0: impl Into<Option<&'env ExtractedTextRequest>>,
arg1: i32
) -> Result<Option<Local<'env, ExtractedText>>>
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]
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool>
pub fn delete_surrounding_text_in_code_points<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool>
pub fn set_composing_text<'env>(
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: i32
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: i32
) -> Result<bool>
Required features: "java-lang-CharSequence"
pub fn set_composing_region<'env>(
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: i32
) -> Result<bool>
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]
&'env self,
arg0: impl Into<Option<&'env CharSequence>>,
arg1: i32
) -> Result<bool>
Required features: "java-lang-CharSequence"
pub fn commit_completion<'env>(
&'env self,
arg0: impl Into<Option<&'env CompletionInfo>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env CompletionInfo>>
) -> Result<bool>
Required features: "android-view-inputmethod-CompletionInfo"
pub fn commit_correction<'env>(
&'env self,
arg0: impl Into<Option<&'env CorrectionInfo>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env CorrectionInfo>>
) -> Result<bool>
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]
&'env self,
arg0: impl Into<Option<&'env KeyEvent>>
) -> Result<bool>
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]
&'env self,
arg0: impl Into<Option<&'env String>>,
arg1: impl Into<Option<&'env Bundle>>
) -> Result<bool>
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]
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]
&'env self,
arg0: impl Into<Option<&'env InputContentInfo>>,
arg1: i32,
arg2: impl Into<Option<&'env Bundle>>
) -> Result<bool>
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]
public static final INPUT_CONTENT_GRANT_READ_URI_PERMISSION
Methods from Deref<Target = Object>
pub fn get_class<'env>(&'env self) -> Result<Option<Local<'env, Class>>>[src]
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]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
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
fn as_ref(&self) -> &InputConnection
impl AsRef<InputConnection> for InputConnectionWrapper
fn as_ref(&self) -> &InputConnection
impl Deref for InputConnection
impl AsValidJObjectAndEnv for InputConnection
impl AsJValue for InputConnection
Auto Trait Implementations
impl !Sync for InputConnection
impl Unpin for InputConnection
impl !Send for InputConnection
impl UnwindSafe for InputConnection
impl RefUnwindSafe for InputConnection
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,