[]Struct jni_android_sys::android::widget::ViewSwitcher

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

public class ViewSwitcher

Required feature: android-widget-ViewSwitcher

Methods

impl ViewSwitcher

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

Required features: "android-content-Context"

pub fn new_context_attribute_set<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env AttributeSet>>
) -> Result<Local<'env, ViewSwitcher>>
[src]

Required features: "android-content-Context", "android-util-AttributeSet"

pub fn add_view<'env>(
    &'env self,
    arg0: impl Into<Option<&'env View>>,
    arg1: i32,
    arg2: impl Into<Option<&'env ViewGroup_LayoutParams>>
) -> Result<()>
[src]

addView

Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

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

getNextView

Required features: "android-view-View"

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

setFactory

Required features: "android-widget-ViewSwitcher_ViewFactory"

pub fn reset<'env>(&'env self) -> Result<()>[src]

Methods from Deref<Target = ViewAnimator>

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

pub fn get_displayed_child<'env>(&'env self) -> Result<i32>[src]

pub fn show_next<'env>(&'env self) -> Result<()>[src]

pub fn show_previous<'env>(&'env self) -> Result<()>[src]

pub fn add_view<'env>(
    &'env self,
    arg0: impl Into<Option<&'env View>>,
    arg1: i32,
    arg2: impl Into<Option<&'env ViewGroup_LayoutParams>>
) -> Result<()>
[src]

addView

Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"

pub fn remove_all_views<'env>(&'env self) -> Result<()>[src]

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

removeView

Required features: "android-view-View"

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

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

removeViewInLayout

Required features: "android-view-View"

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

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

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

getCurrentView

Required features: "android-view-View"

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

getInAnimation

Required features: "android-view-animation-Animation"

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

setInAnimation

Required features: "android-view-animation-Animation"

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

getOutAnimation

Required features: "android-view-animation-Animation"

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

setOutAnimation

Required features: "android-view-animation-Animation"

pub fn set_in_animation_context_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i32
) -> Result<()>
[src]

setInAnimation

Required features: "android-content-Context"

pub fn set_out_animation_context_int<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i32
) -> Result<()>
[src]

setOutAnimation

Required features: "android-content-Context"

pub fn get_animate_first_view<'env>(&'env self) -> Result<bool>[src]

pub fn set_animate_first_view<'env>(&'env self, arg0: bool) -> Result<()>[src]

pub fn get_baseline<'env>(&'env self) -> Result<i32>[src]

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

Trait Implementations

impl Deref for ViewSwitcher

type Target = ViewAnimator

The resulting type after dereferencing.

impl AsValidJObjectAndEnv for ViewSwitcher

impl AsJValue for ViewSwitcher

Auto Trait Implementations

Blanket Implementations

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.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]