// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-widget-AdapterView"))]
__jni_bindgen! {
/// public class [AdapterView](https://developer.android.com/reference/android/widget/AdapterView.html)
///
/// Required feature: "android-widget-AdapterView"
public class AdapterView ("android/widget/AdapterView") extends crate::android::view::ViewGroup {
/// [AdapterView](https://developer.android.com/reference/android/widget/AdapterView.html#AdapterView(android.content.Context))
///
/// Required features: "android-content-Context"
#[cfg(any(feature = "all", all(feature = "android-content-Context")))]
pub fn new_Context<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::AdapterView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "<init>\0", "(Landroid/content/Context;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [AdapterView](https://developer.android.com/reference/android/widget/AdapterView.html#AdapterView(android.content.Context,%20android.util.AttributeSet))
///
/// Required features: "android-content-Context", "android-util-AttributeSet"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-util-AttributeSet")))]
pub fn new_Context_AttributeSet<'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: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::AdapterView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [AdapterView](https://developer.android.com/reference/android/widget/AdapterView.html#AdapterView(android.content.Context,%20android.util.AttributeSet,%20int))
///
/// Required features: "android-content-Context", "android-util-AttributeSet"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-util-AttributeSet")))]
pub fn new_Context_AttributeSet_int<'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: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::AdapterView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [AdapterView](https://developer.android.com/reference/android/widget/AdapterView.html#AdapterView(android.content.Context,%20android.util.AttributeSet,%20int,%20int))
///
/// Required features: "android-content-Context", "android-util-AttributeSet"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-util-AttributeSet")))]
pub fn new_Context_AttributeSet_int_int<'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: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::AdapterView>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;II)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [setOnItemClickListener](https://developer.android.com/reference/android/widget/AdapterView.html#setOnItemClickListener(android.widget.AdapterView.OnItemClickListener))
///
/// Required features: "android-widget-AdapterView_OnItemClickListener"
#[cfg(any(feature = "all", all(feature = "android-widget-AdapterView_OnItemClickListener")))]
pub fn setOnItemClickListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::AdapterView_OnItemClickListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "setOnItemClickListener", .descriptor == "(Landroid/widget/AdapterView$OnItemClickListener;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "setOnItemClickListener\0", "(Landroid/widget/AdapterView$OnItemClickListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getOnItemClickListener](https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemClickListener())
///
/// Required features: "android-widget-AdapterView_OnItemClickListener"
#[cfg(any(feature = "all", all(feature = "android-widget-AdapterView_OnItemClickListener")))]
pub fn getOnItemClickListener<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::AdapterView_OnItemClickListener>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC | FINAL, .name == "getOnItemClickListener", .descriptor == "()Landroid/widget/AdapterView$OnItemClickListener;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getOnItemClickListener\0", "()Landroid/widget/AdapterView$OnItemClickListener;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [performItemClick](https://developer.android.com/reference/android/widget/AdapterView.html#performItemClick(android.view.View,%20int,%20long))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn performItemClick<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: i32, arg2: i64) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "performItemClick", .descriptor == "(Landroid/view/View;IJ)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "performItemClick\0", "(Landroid/view/View;IJ)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setOnItemLongClickListener](https://developer.android.com/reference/android/widget/AdapterView.html#setOnItemLongClickListener(android.widget.AdapterView.OnItemLongClickListener))
///
/// Required features: "android-widget-AdapterView_OnItemLongClickListener"
#[cfg(any(feature = "all", all(feature = "android-widget-AdapterView_OnItemLongClickListener")))]
pub fn setOnItemLongClickListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::AdapterView_OnItemLongClickListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "setOnItemLongClickListener", .descriptor == "(Landroid/widget/AdapterView$OnItemLongClickListener;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "setOnItemLongClickListener\0", "(Landroid/widget/AdapterView$OnItemLongClickListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getOnItemLongClickListener](https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemLongClickListener())
///
/// Required features: "android-widget-AdapterView_OnItemLongClickListener"
#[cfg(any(feature = "all", all(feature = "android-widget-AdapterView_OnItemLongClickListener")))]
pub fn getOnItemLongClickListener<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::AdapterView_OnItemLongClickListener>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC | FINAL, .name == "getOnItemLongClickListener", .descriptor == "()Landroid/widget/AdapterView$OnItemLongClickListener;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getOnItemLongClickListener\0", "()Landroid/widget/AdapterView$OnItemLongClickListener;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setOnItemSelectedListener](https://developer.android.com/reference/android/widget/AdapterView.html#setOnItemSelectedListener(android.widget.AdapterView.OnItemSelectedListener))
///
/// Required features: "android-widget-AdapterView_OnItemSelectedListener"
#[cfg(any(feature = "all", all(feature = "android-widget-AdapterView_OnItemSelectedListener")))]
pub fn setOnItemSelectedListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::AdapterView_OnItemSelectedListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "setOnItemSelectedListener", .descriptor == "(Landroid/widget/AdapterView$OnItemSelectedListener;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "setOnItemSelectedListener\0", "(Landroid/widget/AdapterView$OnItemSelectedListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getOnItemSelectedListener](https://developer.android.com/reference/android/widget/AdapterView.html#getOnItemSelectedListener())
///
/// Required features: "android-widget-AdapterView_OnItemSelectedListener"
#[cfg(any(feature = "all", all(feature = "android-widget-AdapterView_OnItemSelectedListener")))]
pub fn getOnItemSelectedListener<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::AdapterView_OnItemSelectedListener>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC | FINAL, .name == "getOnItemSelectedListener", .descriptor == "()Landroid/widget/AdapterView$OnItemSelectedListener;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getOnItemSelectedListener\0", "()Landroid/widget/AdapterView$OnItemSelectedListener;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAdapter](https://developer.android.com/reference/android/widget/AdapterView.html#getAdapter())
///
/// Required features: "android-widget-Adapter"
#[cfg(any(feature = "all", all(feature = "android-widget-Adapter")))]
pub fn getAdapter<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::Adapter>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC | ABSTRACT, .name == "getAdapter", .descriptor == "()Landroid/widget/Adapter;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getAdapter\0", "()Landroid/widget/Adapter;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setAdapter](https://developer.android.com/reference/android/widget/AdapterView.html#setAdapter(android.widget.Adapter))
///
/// Required features: "android-widget-Adapter"
#[cfg(any(feature = "all", all(feature = "android-widget-Adapter")))]
pub fn setAdapter<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::Adapter>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC | ABSTRACT, .name == "setAdapter", .descriptor == "(Landroid/widget/Adapter;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "setAdapter\0", "(Landroid/widget/Adapter;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [addView](https://developer.android.com/reference/android/widget/AdapterView.html#addView(android.view.View))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn addView_View<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "addView", .descriptor == "(Landroid/view/View;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "addView\0", "(Landroid/view/View;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [addView](https://developer.android.com/reference/android/widget/AdapterView.html#addView(android.view.View,%20int))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn addView_View_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "addView", .descriptor == "(Landroid/view/View;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "addView\0", "(Landroid/view/View;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [addView](https://developer.android.com/reference/android/widget/AdapterView.html#addView(android.view.View,%20android.view.ViewGroup.LayoutParams))
///
/// Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"
#[cfg(any(feature = "all", all(feature = "android-view-View", feature = "android-view-ViewGroup_LayoutParams")))]
pub fn addView_View_LayoutParams<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ViewGroup_LayoutParams>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "addView", .descriptor == "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "addView\0", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [addView](https://developer.android.com/reference/android/widget/AdapterView.html#addView(android.view.View,%20int,%20android.view.ViewGroup.LayoutParams))
///
/// Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"
#[cfg(any(feature = "all", all(feature = "android-view-View", feature = "android-view-ViewGroup_LayoutParams")))]
pub fn addView_View_int_LayoutParams<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ViewGroup_LayoutParams>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "addView", .descriptor == "(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)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_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "addView\0", "(Landroid/view/View;ILandroid/view/ViewGroup$LayoutParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [removeView](https://developer.android.com/reference/android/widget/AdapterView.html#removeView(android.view.View))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn removeView<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "removeView", .descriptor == "(Landroid/view/View;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "removeView\0", "(Landroid/view/View;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [removeViewAt](https://developer.android.com/reference/android/widget/AdapterView.html#removeViewAt(int))
pub fn removeViewAt<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "removeViewAt", .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/AdapterView\0", "removeViewAt\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [removeAllViews](https://developer.android.com/reference/android/widget/AdapterView.html#removeAllViews())
pub fn removeAllViews<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "removeAllViews", .descriptor == "()V"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "removeAllViews\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSelectedItemPosition](https://developer.android.com/reference/android/widget/AdapterView.html#getSelectedItemPosition())
pub fn getSelectedItemPosition<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getSelectedItemPosition", .descriptor == "()I"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getSelectedItemPosition\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSelectedItemId](https://developer.android.com/reference/android/widget/AdapterView.html#getSelectedItemId())
pub fn getSelectedItemId<'env>(&'env self) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getSelectedItemId", .descriptor == "()J"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getSelectedItemId\0", "()J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSelectedView](https://developer.android.com/reference/android/widget/AdapterView.html#getSelectedView())
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn getSelectedView<'env>(&'env self) -> __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/AdapterView", java.flags == PUBLIC | ABSTRACT, .name == "getSelectedView", .descriptor == "()Landroid/view/View;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getSelectedView\0", "()Landroid/view/View;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSelectedItem](https://developer.android.com/reference/android/widget/AdapterView.html#getSelectedItem())
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn getSelectedItem<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Object>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getSelectedItem", .descriptor == "()Ljava/lang/Object;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getSelectedItem\0", "()Ljava/lang/Object;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCount](https://developer.android.com/reference/android/widget/AdapterView.html#getCount())
pub fn getCount<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getCount", .descriptor == "()I"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getCount\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getPositionForView](https://developer.android.com/reference/android/widget/AdapterView.html#getPositionForView(android.view.View))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn getPositionForView<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getPositionForView", .descriptor == "(Landroid/view/View;)I"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getPositionForView\0", "(Landroid/view/View;)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getFirstVisiblePosition](https://developer.android.com/reference/android/widget/AdapterView.html#getFirstVisiblePosition())
pub fn getFirstVisiblePosition<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getFirstVisiblePosition", .descriptor == "()I"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getFirstVisiblePosition\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getLastVisiblePosition](https://developer.android.com/reference/android/widget/AdapterView.html#getLastVisiblePosition())
pub fn getLastVisiblePosition<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getLastVisiblePosition", .descriptor == "()I"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getLastVisiblePosition\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setSelection](https://developer.android.com/reference/android/widget/AdapterView.html#setSelection(int))
pub fn setSelection<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC | ABSTRACT, .name == "setSelection", .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/AdapterView\0", "setSelection\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setEmptyView](https://developer.android.com/reference/android/widget/AdapterView.html#setEmptyView(android.view.View))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn setEmptyView<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "setEmptyView", .descriptor == "(Landroid/view/View;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "setEmptyView\0", "(Landroid/view/View;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getEmptyView](https://developer.android.com/reference/android/widget/AdapterView.html#getEmptyView())
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn getEmptyView<'env>(&'env self) -> __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/AdapterView", java.flags == PUBLIC, .name == "getEmptyView", .descriptor == "()Landroid/view/View;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getEmptyView\0", "()Landroid/view/View;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setFocusable](https://developer.android.com/reference/android/widget/AdapterView.html#setFocusable(int))
pub fn setFocusable<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "setFocusable", .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/AdapterView\0", "setFocusable\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setFocusableInTouchMode](https://developer.android.com/reference/android/widget/AdapterView.html#setFocusableInTouchMode(boolean))
pub fn setFocusableInTouchMode<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "setFocusableInTouchMode", .descriptor == "(Z)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/AdapterView\0", "setFocusableInTouchMode\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getItemAtPosition](https://developer.android.com/reference/android/widget/AdapterView.html#getItemAtPosition(int))
///
/// Required features: "java-lang-Object"
#[cfg(any(feature = "all", all(feature = "java-lang-Object")))]
pub fn getItemAtPosition<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Object>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getItemAtPosition", .descriptor == "(I)Ljava/lang/Object;"
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/AdapterView\0", "getItemAtPosition\0", "(I)Ljava/lang/Object;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getItemIdAtPosition](https://developer.android.com/reference/android/widget/AdapterView.html#getItemIdAtPosition(int))
pub fn getItemIdAtPosition<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<i64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getItemIdAtPosition", .descriptor == "(I)J"
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/AdapterView\0", "getItemIdAtPosition\0", "(I)J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setOnClickListener](https://developer.android.com/reference/android/widget/AdapterView.html#setOnClickListener(android.view.View.OnClickListener))
///
/// Required features: "android-view-View_OnClickListener"
#[cfg(any(feature = "all", all(feature = "android-view-View_OnClickListener")))]
pub fn setOnClickListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View_OnClickListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "setOnClickListener", .descriptor == "(Landroid/view/View$OnClickListener;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "setOnClickListener\0", "(Landroid/view/View$OnClickListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAccessibilityClassName](https://developer.android.com/reference/android/widget/AdapterView.html#getAccessibilityClassName())
///
/// Required features: "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
pub fn getAccessibilityClassName<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "getAccessibilityClassName", .descriptor == "()Ljava/lang/CharSequence;"
unsafe {
let __jni_args = [];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "getAccessibilityClassName\0", "()Ljava/lang/CharSequence;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onProvideAutofillStructure](https://developer.android.com/reference/android/widget/AdapterView.html#onProvideAutofillStructure(android.view.ViewStructure,%20int))
///
/// Required features: "android-view-ViewStructure"
#[cfg(any(feature = "all", all(feature = "android-view-ViewStructure")))]
pub fn onProvideAutofillStructure<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ViewStructure>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/AdapterView", java.flags == PUBLIC, .name == "onProvideAutofillStructure", .descriptor == "(Landroid/view/ViewStructure;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/AdapterView\0", "onProvideAutofillStructure\0", "(Landroid/view/ViewStructure;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [INVALID_POSITION](https://developer.android.com/reference/android/widget/AdapterView.html#INVALID_POSITION)
pub const INVALID_POSITION : i32 = -1;
/// public static final [INVALID_ROW_ID](https://developer.android.com/reference/android/widget/AdapterView.html#INVALID_ROW_ID)
pub const INVALID_ROW_ID : i64 = -9223372036854775808i64;
/// public static final [ITEM_VIEW_TYPE_HEADER_OR_FOOTER](https://developer.android.com/reference/android/widget/AdapterView.html#ITEM_VIEW_TYPE_HEADER_OR_FOOTER)
pub const ITEM_VIEW_TYPE_HEADER_OR_FOOTER : i32 = -2;
/// public static final [ITEM_VIEW_TYPE_IGNORE](https://developer.android.com/reference/android/widget/AdapterView.html#ITEM_VIEW_TYPE_IGNORE)
pub const ITEM_VIEW_TYPE_IGNORE : i32 = -1;
}
}