[]Struct jni_android_sys::android::animation::Animator

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

public class Animator

Required feature: "android-animation-Animator"

Methods

impl Animator

pub fn new<'env>(
    __jni_env: &'env Env
) -> Result<Local<'env, Animator>, Local<'env, Throwable>>
[src]

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

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

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

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

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

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

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

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

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

setDuration

Required features: "android-animation-Animator"

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

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

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

setInterpolator

Required features: "android-animation-TimeInterpolator"

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

getInterpolator

Required features: "android-animation-TimeInterpolator"

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

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

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

addListener

Required features: "android-animation-Animator_AnimatorListener"

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

removeListener

Required features: "android-animation-Animator_AnimatorListener"

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

getListeners

Required features: "java-util-ArrayList"

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

addPauseListener

Required features: "android-animation-Animator_AnimatorPauseListener"

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

removePauseListener

Required features: "android-animation-Animator_AnimatorPauseListener"

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

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

clone

Required features: "android-animation-Animator"

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

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

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

setTarget

Required features: "java-lang-Object"

pub const DURATION_INFINITE: i64[src]

public static final DURATION_INFINITE

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 Animator

impl AsRef<Cloneable> for Animator

impl AsValidJObjectAndEnv for Animator

impl Deref for Animator

type Target = Object

The resulting type after dereferencing.

impl JniType for Animator

Auto Trait Implementations

impl RefUnwindSafe for Animator

impl !Send for Animator

impl !Sync for Animator

impl Unpin for Animator

impl UnwindSafe for Animator

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.