// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-app-ListFragment"))]
__jni_bindgen! {
/// public class [ListFragment](https://developer.android.com/reference/android/app/ListFragment.html)
///
/// Required feature: "android-app-ListFragment"
#[deprecated] public class ListFragment ("android/app/ListFragment") extends crate::android::app::Fragment {
/// [ListFragment](https://developer.android.com/reference/android/app/ListFragment.html#ListFragment())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::app::ListFragment>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/ListFragment\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [onCreateView](https://developer.android.com/reference/android/app/ListFragment.html#onCreateView(android.view.LayoutInflater,%20android.view.ViewGroup,%20android.os.Bundle))
///
/// Required features: "android-os-Bundle", "android-view-LayoutInflater", "android-view-View", "android-view-ViewGroup"
#[cfg(any(feature = "all", all(feature = "android-os-Bundle", feature = "android-view-LayoutInflater", feature = "android-view-View", feature = "android-view-ViewGroup")))]
pub fn onCreateView<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::LayoutInflater>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ViewGroup>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __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/app/ListFragment", java.flags == PUBLIC, .name == "onCreateView", .descriptor == "(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)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/app/ListFragment\0", "onCreateView\0", "(Landroid/view/LayoutInflater;Landroid/view/ViewGroup;Landroid/os/Bundle;)Landroid/view/View;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onViewCreated](https://developer.android.com/reference/android/app/ListFragment.html#onViewCreated(android.view.View,%20android.os.Bundle))
///
/// Required features: "android-os-Bundle", "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-os-Bundle", feature = "android-view-View")))]
pub fn onViewCreated<'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::os::Bundle>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "onViewCreated", .descriptor == "(Landroid/view/View;Landroid/os/Bundle;)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/app/ListFragment\0", "onViewCreated\0", "(Landroid/view/View;Landroid/os/Bundle;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onDestroyView](https://developer.android.com/reference/android/app/ListFragment.html#onDestroyView())
pub fn onDestroyView<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "onDestroyView", .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/app/ListFragment\0", "onDestroyView\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onListItemClick](https://developer.android.com/reference/android/app/ListFragment.html#onListItemClick(android.widget.ListView,%20android.view.View,%20int,%20long))
///
/// Required features: "android-view-View", "android-widget-ListView"
#[cfg(any(feature = "all", all(feature = "android-view-View", feature = "android-widget-ListView")))]
pub fn onListItemClick<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::ListView>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg2: i32, arg3: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "onListItemClick", .descriptor == "(Landroid/widget/ListView;Landroid/view/View;IJ)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_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/ListFragment\0", "onListItemClick\0", "(Landroid/widget/ListView;Landroid/view/View;IJ)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setListAdapter](https://developer.android.com/reference/android/app/ListFragment.html#setListAdapter(android.widget.ListAdapter))
///
/// Required features: "android-widget-ListAdapter"
#[cfg(any(feature = "all", all(feature = "android-widget-ListAdapter")))]
pub fn setListAdapter<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::ListAdapter>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "setListAdapter", .descriptor == "(Landroid/widget/ListAdapter;)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/app/ListFragment\0", "setListAdapter\0", "(Landroid/widget/ListAdapter;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setSelection](https://developer.android.com/reference/android/app/ListFragment.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/app/ListFragment", java.flags == PUBLIC, .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/app/ListFragment\0", "setSelection\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSelectedItemPosition](https://developer.android.com/reference/android/app/ListFragment.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/app/ListFragment", 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/app/ListFragment\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/app/ListFragment.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/app/ListFragment", 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/app/ListFragment\0", "getSelectedItemId\0", "()J\0");
__jni_env.call_long_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getListView](https://developer.android.com/reference/android/app/ListFragment.html#getListView())
///
/// Required features: "android-widget-ListView"
#[cfg(any(feature = "all", all(feature = "android-widget-ListView")))]
pub fn getListView<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::ListView>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "getListView", .descriptor == "()Landroid/widget/ListView;"
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/app/ListFragment\0", "getListView\0", "()Landroid/widget/ListView;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setEmptyText](https://developer.android.com/reference/android/app/ListFragment.html#setEmptyText(java.lang.CharSequence))
///
/// Required features: "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
pub fn setEmptyText<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "setEmptyText", .descriptor == "(Ljava/lang/CharSequence;)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/app/ListFragment\0", "setEmptyText\0", "(Ljava/lang/CharSequence;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setListShown](https://developer.android.com/reference/android/app/ListFragment.html#setListShown(boolean))
pub fn setListShown<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "setListShown", .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/app/ListFragment\0", "setListShown\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setListShownNoAnimation](https://developer.android.com/reference/android/app/ListFragment.html#setListShownNoAnimation(boolean))
pub fn setListShownNoAnimation<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "setListShownNoAnimation", .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/app/ListFragment\0", "setListShownNoAnimation\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getListAdapter](https://developer.android.com/reference/android/app/ListFragment.html#getListAdapter())
///
/// Required features: "android-widget-ListAdapter"
#[cfg(any(feature = "all", all(feature = "android-widget-ListAdapter")))]
pub fn getListAdapter<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::ListAdapter>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/ListFragment", java.flags == PUBLIC, .name == "getListAdapter", .descriptor == "()Landroid/widget/ListAdapter;"
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/app/ListFragment\0", "getListAdapter\0", "()Landroid/widget/ListAdapter;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}