[]Struct jni_android_sys::android::os::Handler

#[repr(transparent)]
pub struct 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]

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]

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]

Required features: "android-os-Handler_Callback", "android-os-Looper"

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

handleMessage

Required features: "android-os-Message"

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

dispatchMessage

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]

createAsync

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]

createAsync

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]

getMessageName

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

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

obtainMessage

Required features: "android-os-Message"

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

obtainMessage

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]

obtainMessage

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]

obtainMessage

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]

obtainMessage

Required features: "android-os-Message", "java-lang-Object"

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

post

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]

postAtTime

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]

postAtTime

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]

postDelayed

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]

postDelayed

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]

postAtFrontOfQueue

Required features: "java-lang-Runnable"

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

removeCallbacks

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]

removeCallbacks

Required features: "java-lang-Object", "java-lang-Runnable"

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

sendMessage

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]

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

pub fn send_message_delayed<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Message>>,
    arg1: i64
) -> Result<bool>
[src]

sendMessageDelayed

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]

sendMessageAtTime

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]

sendMessageAtFrontOfQueue

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]

removeMessages

Required features: "java-lang-Object"

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

removeCallbacksAndMessages

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]

hasMessages

Required features: "java-lang-Object"

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

getLooper

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]

dump

Required features: "android-util-Printer", "java-lang-String"

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

toString

Required features: "java-lang-String"

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 Deref for Handler

type Target = Object

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for Handler

impl AsJValue for Handler

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]

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]