[]Struct jni_android_sys::android::widget::TabHost

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

public class TabHost

Required feature: "android-widget-TabHost"

Methods

impl TabHost

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

TabHost

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, TabHost>, Local<'env, Throwable>>
[src]

TabHost

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

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

TabHost

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

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

TabHost

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

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

newTabSpec

Required features: "android-widget-TabHost_TabSpec", "java-lang-String"

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

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

setup

Required features: "android-app-LocalActivityManager"

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

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

addTab

Required features: "android-widget-TabHost_TabSpec"

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

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

getTabWidget

Required features: "android-widget-TabWidget"

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

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

getCurrentTabTag

Required features: "java-lang-String"

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

getCurrentTabView

Required features: "android-view-View"

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

getCurrentView

Required features: "android-view-View"

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

setCurrentTabByTag

Required features: "java-lang-String"

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

getTabContentView

Required features: "android-widget-FrameLayout"

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

dispatchKeyEvent

Required features: "android-view-KeyEvent"

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

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

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

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

setOnTabChangedListener

Required features: "android-widget-TabHost_OnTabChangeListener"

Methods from Deref<Target = FrameLayout>

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

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

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

Deprecated

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

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

generateLayoutParams

Required features: "android-util-AttributeSet", "android-widget-FrameLayout_LayoutParams"

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

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

Trait Implementations

impl AsJValue for TabHost

impl AsRef<ViewTreeObserver_OnTouchModeChangeListener> for TabHost

impl AsValidJObjectAndEnv for TabHost

impl Deref for TabHost

type Target = FrameLayout

The resulting type after dereferencing.

impl JniType for TabHost

Auto Trait Implementations

impl RefUnwindSafe for TabHost

impl !Send for TabHost

impl !Sync for TabHost

impl Unpin for TabHost

impl UnwindSafe for TabHost

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.