[]Struct jni_android_sys::android::widget::Toast

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

public class Toast

Required feature: "android-widget-Toast"

Methods

impl Toast

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>
) -> Result<Local<'env, Toast>, Local<'env, Throwable>>
[src]

Toast

Required features: "android-content-Context"

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

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

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

setView

Required features: "android-view-View"

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

getView

Required features: "android-view-View"

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

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

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

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

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

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

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

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

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

pub fn makeText_Context_CharSequence_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env CharSequence>>,
    arg2: i32
) -> Result<Option<Local<'env, Toast>>, Local<'env, Throwable>>
[src]

makeText

Required features: "android-content-Context", "android-widget-Toast", "java-lang-CharSequence"

pub fn makeText_Context_int_int<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i32,
    arg2: i32
) -> Result<Option<Local<'env, Toast>>, Local<'env, Throwable>>
[src]

makeText

Required features: "android-content-Context", "android-widget-Toast"

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

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

setText

Required features: "java-lang-CharSequence"

pub const LENGTH_LONG: i32[src]

public static final LENGTH_LONG

pub const LENGTH_SHORT: i32[src]

public static final LENGTH_SHORT

Methods from Deref<Target = Object>

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

getClass

Required features: "java-lang-Class"

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

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

equals

Required features: "java-lang-Object"

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

toString

Required features: "java-lang-String"

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

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

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

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

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

Trait Implementations

impl AsJValue for Toast

impl AsValidJObjectAndEnv for Toast

impl Deref for Toast

type Target = Object

The resulting type after dereferencing.

impl JniType for Toast

Auto Trait Implementations

impl RefUnwindSafe for Toast

impl !Send for Toast

impl !Sync for Toast

impl Unpin for Toast

impl UnwindSafe for Toast

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.