[]Struct jni_android_sys::android::widget::TextSwitcher

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

public class TextSwitcher

Required feature: "android-widget-TextSwitcher"

Methods

impl TextSwitcher

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

TextSwitcher

Required features: "android-content-Context"

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

TextSwitcher

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

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

addView

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

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

setText

Required features: "java-lang-CharSequence"

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

setCurrentText

Required features: "java-lang-CharSequence"

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

Methods from Deref<Target = ViewSwitcher>

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

addView

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

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

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

getNextView

Required features: "android-view-View"

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

setFactory

Required features: "android-widget-ViewSwitcher_ViewFactory"

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

Trait Implementations

impl AsJValue for TextSwitcher

impl AsValidJObjectAndEnv for TextSwitcher

impl Deref for TextSwitcher

type Target = ViewSwitcher

The resulting type after dereferencing.

impl JniType for TextSwitcher

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.