[−]Struct jni_android_sys::android::os::Handler
public class Handler
Required feature: android-os-Handler
Methods
impl Handler
pub fn new<'env>(__jni_env: &'env Env) -> Result<Local<'env, Handler>>[src]
pub fn new_callback<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Handler_Callback>>
) -> Result<Local<'env, Handler>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Handler_Callback>>
) -> Result<Local<'env, Handler>>
Required features: "android-os-Handler_Callback"
pub fn new_looper<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Looper>>
) -> Result<Local<'env, Handler>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Looper>>
) -> Result<Local<'env, Handler>>
Required features: "android-os-Looper"
pub fn new_looper_callback<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Looper>>,
arg1: impl Into<Option<&'env Handler_Callback>>
) -> Result<Local<'env, Handler>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Looper>>,
arg1: impl Into<Option<&'env Handler_Callback>>
) -> Result<Local<'env, Handler>>
Required features: "android-os-Handler_Callback", "android-os-Looper"
pub fn handle_message<'env>(
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<()>
Required features: "android-os-Message"
pub fn dispatch_message<'env>(
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<()>
Required features: "android-os-Message"
pub fn create_async_looper<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Looper>>
) -> Result<Option<Local<'env, Handler>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Looper>>
) -> Result<Option<Local<'env, Handler>>>
Required features: "android-os-Handler", "android-os-Looper"
pub fn create_async_looper_callback<'env>(
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Looper>>,
arg1: impl Into<Option<&'env Handler_Callback>>
) -> Result<Option<Local<'env, Handler>>>[src]
__jni_env: &'env Env,
arg0: impl Into<Option<&'env Looper>>,
arg1: impl Into<Option<&'env Handler_Callback>>
) -> Result<Option<Local<'env, Handler>>>
Required features: "android-os-Handler", "android-os-Handler_Callback", "android-os-Looper"
pub fn get_message_name<'env>(
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<Option<Local<'env, String>>>[src]
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<Option<Local<'env, String>>>
Required features: "android-os-Message", "java-lang-String"
pub fn obtain_message<'env>(&'env self) -> Result<Option<Local<'env, Message>>>[src]
Required features: "android-os-Message"
pub fn obtain_message_int<'env>(
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Message>>>[src]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Message>>>
Required features: "android-os-Message"
pub fn obtain_message_int_object<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Message>>>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Message>>>
Required features: "android-os-Message", "java-lang-Object"
pub fn obtain_message_int_int_int<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, Message>>>[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32
) -> Result<Option<Local<'env, Message>>>
Required features: "android-os-Message"
pub fn obtain_message_int_int_int_object<'env>(
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Message>>>[src]
&'env self,
arg0: i32,
arg1: i32,
arg2: i32,
arg3: impl Into<Option<&'env Object>>
) -> Result<Option<Local<'env, Message>>>
Required features: "android-os-Message", "java-lang-Object"
pub fn post<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<bool>
Required features: "java-lang-Runnable"
pub fn post_at_time_runnable_long<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64
) -> Result<bool>
Required features: "java-lang-Runnable"
pub fn post_at_time_runnable_object_long<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env Object>>,
arg2: i64
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env Object>>,
arg2: i64
) -> Result<bool>
Required features: "java-lang-Object", "java-lang-Runnable"
pub fn post_delayed_runnable_long<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: i64
) -> Result<bool>
Required features: "java-lang-Runnable"
pub fn post_delayed_runnable_object_long<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env Object>>,
arg2: i64
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env Object>>,
arg2: i64
) -> Result<bool>
Required features: "java-lang-Object", "java-lang-Runnable"
pub fn post_at_front_of_queue<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<bool>
Required features: "java-lang-Runnable"
pub fn remove_callbacks_runnable<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>
) -> Result<()>
Required features: "java-lang-Runnable"
pub fn remove_callbacks_runnable_object<'env>(
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Runnable>>,
arg1: impl Into<Option<&'env Object>>
) -> Result<()>
Required features: "java-lang-Object", "java-lang-Runnable"
pub fn send_message<'env>(
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<bool>
Required features: "android-os-Message"
pub fn send_empty_message<'env>(&'env self, arg0: i32) -> Result<bool>[src]
pub fn send_empty_message_delayed<'env>(
&'env self,
arg0: i32,
arg1: i64
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: i64
) -> Result<bool>
pub fn send_empty_message_at_time<'env>(
&'env self,
arg0: i32,
arg1: i64
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: i64
) -> Result<bool>
pub fn send_message_delayed<'env>(
&'env self,
arg0: impl Into<Option<&'env Message>>,
arg1: i64
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Message>>,
arg1: i64
) -> Result<bool>
Required features: "android-os-Message"
pub fn send_message_at_time<'env>(
&'env self,
arg0: impl Into<Option<&'env Message>>,
arg1: i64
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Message>>,
arg1: i64
) -> Result<bool>
Required features: "android-os-Message"
pub fn send_message_at_front_of_queue<'env>(
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<bool>[src]
&'env self,
arg0: impl Into<Option<&'env Message>>
) -> Result<bool>
Required features: "android-os-Message"
pub fn remove_messages_int<'env>(&'env self, arg0: i32) -> Result<()>[src]
pub fn remove_messages_int_object<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Object>>
) -> Result<()>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Object>>
) -> Result<()>
Required features: "java-lang-Object"
pub fn remove_callbacks_and_messages<'env>(
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Object>>
) -> Result<()>
Required features: "java-lang-Object"
pub fn has_messages_int<'env>(&'env self, arg0: i32) -> Result<bool>[src]
pub fn has_messages_int_object<'env>(
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Object>>
) -> Result<bool>[src]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env Object>>
) -> Result<bool>
Required features: "java-lang-Object"
pub fn get_looper<'env>(&'env self) -> Result<Option<Local<'env, Looper>>>[src]
Required features: "android-os-Looper"
pub fn dump<'env>(
&'env self,
arg0: impl Into<Option<&'env Printer>>,
arg1: impl Into<Option<&'env String>>
) -> Result<()>[src]
&'env self,
arg0: impl Into<Option<&'env Printer>>,
arg1: impl Into<Option<&'env String>>
) -> Result<()>
Required features: "android-util-Printer", "java-lang-String"
pub fn to_string<'env>(&'env self) -> Result<Option<Local<'env, String>>>[src]
Required features: "java-lang-String"
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
Auto Trait Implementations
impl !Sync for Handler
impl Unpin for Handler
impl !Send for Handler
impl UnwindSafe for Handler
impl RefUnwindSafe for Handler
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,