[]Struct jni_android_sys::android::graphics::drawable::AnimatedStateListDrawable

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

public class AnimatedStateListDrawable

Required feature: "android-graphics-drawable-AnimatedStateListDrawable"

Methods

impl AnimatedStateListDrawable

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

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

pub fn addState<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntArray>>,
    arg1: impl Into<Option<&'env Drawable>>,
    arg2: i32
) -> Result<(), Local<'env, Throwable>>
[src]

addState

Required features: "android-graphics-drawable-Drawable"

pub fn addTransition<'env>(
    &'env self,
    arg0: i32,
    arg1: i32,
    arg2: impl Into<Option<&'env Drawable>>,
    arg3: bool
) -> Result<(), Local<'env, Throwable>>
[src]

addTransition

Required features: "android-graphics-drawable-Drawable"

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

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

pub fn inflate<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Resources>>,
    arg1: impl Into<Option<&'env XmlPullParser>>,
    arg2: impl Into<Option<&'env AttributeSet>>,
    arg3: impl Into<Option<&'env Resources_Theme>>
) -> Result<(), Local<'env, Throwable>>
[src]

inflate

Required features: "android-content-res-Resources", "android-content-res-Resources_Theme", "android-util-AttributeSet", "org-xmlpull-v1-XmlPullParser"

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

applyTheme

Required features: "android-content-res-Resources_Theme"

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

mutate

Required features: "android-graphics-drawable-Drawable"

Methods from Deref<Target = StateListDrawable>

pub fn addState<'env>(
    &'env self,
    arg0: impl Into<Option<&'env IntArray>>,
    arg1: impl Into<Option<&'env Drawable>>
) -> Result<(), Local<'env, Throwable>>
[src]

addState

Required features: "android-graphics-drawable-Drawable"

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

pub fn inflate<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Resources>>,
    arg1: impl Into<Option<&'env XmlPullParser>>,
    arg2: impl Into<Option<&'env AttributeSet>>,
    arg3: impl Into<Option<&'env Resources_Theme>>
) -> Result<(), Local<'env, Throwable>>
[src]

inflate

Required features: "android-content-res-Resources", "android-content-res-Resources_Theme", "android-util-AttributeSet", "org-xmlpull-v1-XmlPullParser"

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

mutate

Required features: "android-graphics-drawable-Drawable"

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

applyTheme

Required features: "android-content-res-Resources_Theme"

Trait Implementations

impl AsJValue for AnimatedStateListDrawable

impl AsValidJObjectAndEnv for AnimatedStateListDrawable

impl Deref for AnimatedStateListDrawable

type Target = StateListDrawable

The resulting type after dereferencing.

impl JniType for AnimatedStateListDrawable

Auto Trait Implementations

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.