[]Struct jni_android_sys::android::widget::ArrayAdapter

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

public class ArrayAdapter

Required feature: "android-widget-ArrayAdapter"

Methods

impl ArrayAdapter

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

ArrayAdapter

Required features: "android-content-Context"

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

ArrayAdapter

Required features: "android-content-Context"

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

ArrayAdapter

Required features: "android-content-Context", "java-lang-Object"

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

ArrayAdapter

Required features: "android-content-Context", "java-lang-Object"

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

ArrayAdapter

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

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

ArrayAdapter

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

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

add

Required features: "java-lang-Object"

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

addAll

Required features: "java-util-Collection"

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

addAll

Required features: "java-lang-Object"

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

insert

Required features: "java-lang-Object"

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

remove

Required features: "java-lang-Object"

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

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

sort

Required features: "java-util-Comparator"

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

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

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

getContext

Required features: "android-content-Context"

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 getPosition<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Object>>
) -> Result<i32, Local<'env, Throwable>>
[src]

getPosition

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 createFromResource<'env>(
    __jni_env: &'env Env,
    arg0: impl Into<Option<&'env Context>>,
    arg1: i32,
    arg2: i32
) -> Result<Option<Local<'env, ArrayAdapter>>, Local<'env, Throwable>>
[src]

createFromResource

Required features: "android-content-Context", "android-widget-ArrayAdapter"

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

getFilter

Required features: "android-widget-Filter"

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

getAutofillOptions

Required features: "java-lang-CharSequence"

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 ArrayAdapter

impl AsRef<Filterable> for ArrayAdapter

impl AsRef<ThemedSpinnerAdapter> for ArrayAdapter

impl AsValidJObjectAndEnv for ArrayAdapter

impl Deref for ArrayAdapter

type Target = BaseAdapter

The resulting type after dereferencing.

impl JniType for ArrayAdapter

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.