[]Struct jni_android_sys::android::widget::CheckBox

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

public class CheckBox

Required feature: "android-widget-CheckBox"

Methods

impl CheckBox

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

CheckBox

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

CheckBox

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

CheckBox

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

CheckBox

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

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 = CompoundButton>

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

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

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

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

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

setOnCheckedChangeListener

Required features: "android-widget-CompoundButton_OnCheckedChangeListener"

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

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

setButtonDrawable

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

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

getButtonDrawable

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

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

setButtonTintList

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

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

getButtonTintList

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

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

setButtonTintMode

Required features: "android-graphics-PorterDuff_Mode"

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

getButtonTintMode

Required features: "android-graphics-PorterDuff_Mode"

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

getAccessibilityClassName

Required features: "java-lang-CharSequence"

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

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

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

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

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

onSaveInstanceState

Required features: "android-os-Parcelable"

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

onRestoreInstanceState

Required features: "android-os-Parcelable"

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

onProvideAutofillStructure

Required features: "android-view-ViewStructure"

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

autofill

Required features: "android-view-autofill-AutofillValue"

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

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

getAutofillValue

Required features: "android-view-autofill-AutofillValue"

Trait Implementations

impl AsJValue for CheckBox

impl AsValidJObjectAndEnv for CheckBox

impl Deref for CheckBox

type Target = CompoundButton

The resulting type after dereferencing.

impl JniType for CheckBox

Auto Trait Implementations

impl RefUnwindSafe for CheckBox

impl !Send for CheckBox

impl !Sync for CheckBox

impl Unpin for CheckBox

impl UnwindSafe for CheckBox

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.