[−]Struct jni_android_sys::android::widget::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]
__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>>
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]
&'env self,
arg0: i32
) -> Result<Option<Local<'env, Object>>, Local<'env, Throwable>>
Required features: "java-lang-Object"
pub fn getItemId<'env>(
&'env self,
arg0: i32
) -> Result<i64, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i64, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env View>>,
arg2: impl Into<Option<&'env ViewGroup>>
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
Required features: "android-view-View", "android-view-ViewGroup"
pub fn setDropDownViewResource<'env>(
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<(), Local<'env, Throwable>>
pub fn setDropDownViewTheme<'env>(
&'env self,
arg0: impl Into<Option<&'env Resources_Theme>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env Resources_Theme>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-content-res-Resources_Theme"
pub fn getDropDownViewTheme<'env>(
&'env self
) -> Result<Option<Local<'env, Resources_Theme>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Resources_Theme>>, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env View>>,
arg2: impl Into<Option<&'env ViewGroup>>
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
Required features: "android-view-View", "android-view-ViewGroup"
pub fn getViewBinder<'env>(
&'env self
) -> Result<Option<Local<'env, SimpleAdapter_ViewBinder>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, SimpleAdapter_ViewBinder>>, Local<'env, Throwable>>
Required features: "android-widget-SimpleAdapter_ViewBinder"
pub fn setViewBinder<'env>(
&'env self,
arg0: impl Into<Option<&'env SimpleAdapter_ViewBinder>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env SimpleAdapter_ViewBinder>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ImageView>>,
arg1: i32
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env ImageView>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env TextView>>,
arg1: impl Into<Option<&'env String>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-widget-TextView", "java-lang-String"
pub fn getFilter<'env>(
&'env self
) -> Result<Option<Local<'env, Filter>>, Local<'env, Throwable>>
[src]
&'env self
) -> Result<Option<Local<'env, Filter>>, Local<'env, Throwable>>
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]
&'env self,
arg0: impl Into<Option<&'env DataSetObserver>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-database-DataSetObserver"
pub fn unregisterDataSetObserver<'env>(
&'env self,
arg0: impl Into<Option<&'env DataSetObserver>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env DataSetObserver>>
) -> Result<(), Local<'env, Throwable>>
Required features: "android-database-DataSetObserver"
pub fn notifyDataSetChanged<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn notifyDataSetInvalidated<'env>(
&'env self
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self
) -> Result<(), Local<'env, Throwable>>
pub fn areAllItemsEnabled<'env>(
&'env self
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self
) -> Result<bool, Local<'env, Throwable>>
pub fn isEnabled<'env>(
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<bool, Local<'env, Throwable>>
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]
&'env self,
arg0: i32,
arg1: impl Into<Option<&'env View>>,
arg2: impl Into<Option<&'env ViewGroup>>
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
Required features: "android-view-View", "android-view-ViewGroup"
pub fn getItemViewType<'env>(
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
[src]
&'env self,
arg0: i32
) -> Result<i32, Local<'env, Throwable>>
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]
&'env self
) -> Result<Option<Local<'env, ObjectArray<CharSequence, Throwable>>>, Local<'env, Throwable>>
Required features: "java-lang-CharSequence"
pub fn setAutofillOptions<'env>(
&'env self,
arg0: impl Into<Option<&'env ObjectArray<CharSequence, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
[src]
&'env self,
arg0: impl Into<Option<&'env ObjectArray<CharSequence, Throwable>>>
) -> Result<(), Local<'env, Throwable>>
Required features: "java-lang-CharSequence"
Trait Implementations
impl AsJValue for SimpleAdapter
impl AsRef<Filterable> for SimpleAdapter
fn as_ref(&self) -> &Filterable
impl AsRef<ThemedSpinnerAdapter> for SimpleAdapter
fn as_ref(&self) -> &ThemedSpinnerAdapter
impl AsValidJObjectAndEnv for SimpleAdapter
impl Deref for SimpleAdapter
impl JniType for SimpleAdapter
fn static_with_jni_type<R>(callback: impl FnOnce(&str) -> R) -> R
Auto Trait Implementations
impl RefUnwindSafe for SimpleAdapter
impl !Send for SimpleAdapter
impl !Sync for SimpleAdapter
impl Unpin for SimpleAdapter
impl UnwindSafe for SimpleAdapter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,