// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-widget-ResourceCursorAdapter"))]
__jni_bindgen! {
/// public class [ResourceCursorAdapter](https://developer.android.com/reference/android/widget/ResourceCursorAdapter.html)
///
/// Required feature: "android-widget-ResourceCursorAdapter"
public class ResourceCursorAdapter ("android/widget/ResourceCursorAdapter") extends crate::android::widget::CursorAdapter {
/// [ResourceCursorAdapter](https://developer.android.com/reference/android/widget/ResourceCursorAdapter.html#ResourceCursorAdapter(android.content.Context,%20int,%20android.database.Cursor))
///
/// Required features: "android-content-Context", "android-database-Cursor"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor")))]
pub fn new_Context_int_Cursor<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::ResourceCursorAdapter>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ResourceCursorAdapter", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;ILandroid/database/Cursor;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/ResourceCursorAdapter\0", "<init>\0", "(Landroid/content/Context;ILandroid/database/Cursor;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [ResourceCursorAdapter](https://developer.android.com/reference/android/widget/ResourceCursorAdapter.html#ResourceCursorAdapter(android.content.Context,%20int,%20android.database.Cursor,%20boolean))
///
/// Required features: "android-content-Context", "android-database-Cursor"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor")))]
pub fn new_Context_int_Cursor_boolean<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>, arg3: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::ResourceCursorAdapter>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ResourceCursorAdapter", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;ILandroid/database/Cursor;Z)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/ResourceCursorAdapter\0", "<init>\0", "(Landroid/content/Context;ILandroid/database/Cursor;Z)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [newView](https://developer.android.com/reference/android/widget/ResourceCursorAdapter.html#newView(android.content.Context,%20android.database.Cursor,%20android.view.ViewGroup))
///
/// Required features: "android-content-Context", "android-database-Cursor", "android-view-View", "android-view-ViewGroup"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor", feature = "android-view-View", feature = "android-view-ViewGroup")))]
pub fn newView<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ViewGroup>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::View>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ResourceCursorAdapter", java.flags == PUBLIC, .name == "newView", .descriptor == "(Landroid/content/Context;Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/ResourceCursorAdapter\0", "newView\0", "(Landroid/content/Context;Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [newDropDownView](https://developer.android.com/reference/android/widget/ResourceCursorAdapter.html#newDropDownView(android.content.Context,%20android.database.Cursor,%20android.view.ViewGroup))
///
/// Required features: "android-content-Context", "android-database-Cursor", "android-view-View", "android-view-ViewGroup"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor", feature = "android-view-View", feature = "android-view-ViewGroup")))]
pub fn newDropDownView<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ViewGroup>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::View>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ResourceCursorAdapter", java.flags == PUBLIC, .name == "newDropDownView", .descriptor == "(Landroid/content/Context;Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/ResourceCursorAdapter\0", "newDropDownView\0", "(Landroid/content/Context;Landroid/database/Cursor;Landroid/view/ViewGroup;)Landroid/view/View;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setViewResource](https://developer.android.com/reference/android/widget/ResourceCursorAdapter.html#setViewResource(int))
pub fn setViewResource<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ResourceCursorAdapter", java.flags == PUBLIC, .name == "setViewResource", .descriptor == "(I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/ResourceCursorAdapter\0", "setViewResource\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setDropDownViewResource](https://developer.android.com/reference/android/widget/ResourceCursorAdapter.html#setDropDownViewResource(int))
pub fn setDropDownViewResource<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ResourceCursorAdapter", java.flags == PUBLIC, .name == "setDropDownViewResource", .descriptor == "(I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/ResourceCursorAdapter\0", "setDropDownViewResource\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}