[]Struct jni_android_sys::android::widget::SimpleAdapter

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

public class SimpleAdapter

Required feature: "android-widget-SimpleAdapter"

Methods

impl SimpleAdapter

pub fn new<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env List>>,
    arg2: i32,
    arg3: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg4: impl Into<Option<&'env IntArray>>
) -> Result<Local<'env, SimpleAdapter>, Local<'env, Throwable>>
[src]

SimpleAdapter

Required features: "android-content-Context", "java-lang-String", "java-util-List"

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

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

getItem

Required features: "java-lang-Object"

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

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

getView

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

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

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

setDropDownViewTheme

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

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

getDropDownViewTheme

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

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

getDropDownView

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

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

getViewBinder

Required features: "android-widget-SimpleAdapter_ViewBinder"

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

setViewBinder

Required features: "android-widget-SimpleAdapter_ViewBinder"

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

setViewImage

Required features: "android-widget-ImageView"

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

setViewImage

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

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

setViewText

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

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

getFilter

Required features: "android-widget-Filter"

Methods from Deref<Target = BaseAdapter>

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

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

registerDataSetObserver

Required features: "android-database-DataSetObserver"

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

unregisterDataSetObserver

Required features: "android-database-DataSetObserver"

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

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

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

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

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

getDropDownView

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

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

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

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

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

getAutofillOptions

Required features: "java-lang-CharSequence"

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

setAutofillOptions

Required features: "java-lang-CharSequence"

Trait Implementations

impl AsJValue for SimpleAdapter

impl AsRef<Filterable> for SimpleAdapter

impl AsRef<ThemedSpinnerAdapter> for SimpleAdapter

impl AsValidJObjectAndEnv for SimpleAdapter

impl Deref for SimpleAdapter

type Target = BaseAdapter

The resulting type after dereferencing.

impl JniType for SimpleAdapter

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.