[]Struct jni_android_sys::android::widget::SimpleCursorAdapter

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

public class SimpleCursorAdapter

Required feature: "android-widget-SimpleCursorAdapter"

Methods

impl SimpleCursorAdapter

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

Deprecated

SimpleCursorAdapter

Required features: "android-content-Context", "android-database-Cursor", "java-lang-String"

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

SimpleCursorAdapter

Required features: "android-content-Context", "android-database-Cursor", "java-lang-String"

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

bindView

Required features: "android-content-Context", "android-database-Cursor", "android-view-View"

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

getViewBinder

Required features: "android-widget-SimpleCursorAdapter_ViewBinder"

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

setViewBinder

Required features: "android-widget-SimpleCursorAdapter_ViewBinder"

pub fn setViewImage<'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 getStringConversionColumn<'env>(
    &'env self
) -> Result<i32, Local<'env, Throwable>>
[src]

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

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

getCursorToStringConverter

Required features: "android-widget-SimpleCursorAdapter_CursorToStringConverter"

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

setCursorToStringConverter

Required features: "android-widget-SimpleCursorAdapter_CursorToStringConverter"

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

convertToString

Required features: "android-database-Cursor", "java-lang-CharSequence"

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

swapCursor

Required features: "android-database-Cursor"

pub fn changeCursorAndColumns<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Cursor>>,
    arg1: impl Into<Option<&'env ObjectArray<String, Throwable>>>,
    arg2: impl Into<Option<&'env IntArray>>
) -> Result<(), Local<'env, Throwable>>
[src]

changeCursorAndColumns

Required features: "android-database-Cursor", "java-lang-String"

Methods from Deref<Target = ResourceCursorAdapter>

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 newView<'env>(
    &'env self,
    arg0: impl Into<Option<&'env Context>>,
    arg1: impl Into<Option<&'env Cursor>>,
    arg2: impl Into<Option<&'env ViewGroup>>
) -> Result<Option<Local<'env, View>>, Local<'env, Throwable>>
[src]

newView

Required features: "android-content-Context", "android-database-Cursor", "android-view-View", "android-view-ViewGroup"

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

newDropDownView

Required features: "android-content-Context", "android-database-Cursor", "android-view-View", "android-view-ViewGroup"

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

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

Trait Implementations

impl AsJValue for SimpleCursorAdapter

impl AsValidJObjectAndEnv for SimpleCursorAdapter

impl Deref for SimpleCursorAdapter

type Target = ResourceCursorAdapter

The resulting type after dereferencing.

impl JniType for SimpleCursorAdapter

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.