jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-widget-SimpleCursorAdapter"))]
__jni_bindgen! {
    /// public class [SimpleCursorAdapter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html)
    ///
    /// Required feature: "android-widget-SimpleCursorAdapter"
    public class SimpleCursorAdapter ("android/widget/SimpleCursorAdapter") extends crate::android::widget::ResourceCursorAdapter {

        /// [SimpleCursorAdapter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#SimpleCursorAdapter(android.content.Context,%20int,%20android.database.Cursor,%20java.lang.String%5B%5D,%20int%5B%5D))
        ///
        /// Required features: "android-content-Context", "android-database-Cursor", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor", feature = "java-lang-String")))]
        pub fn new_Context_int_Cursor_String_array_int_array<'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: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::SimpleCursorAdapter>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[I)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.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/SimpleCursorAdapter\0", "<init>\0", "(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[I)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [SimpleCursorAdapter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#SimpleCursorAdapter(android.content.Context,%20int,%20android.database.Cursor,%20java.lang.String%5B%5D,%20int%5B%5D,%20int))
        ///
        /// Required features: "android-content-Context", "android-database-Cursor", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor", feature = "java-lang-String")))]
        pub fn new_Context_int_Cursor_String_array_int_array_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: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>, arg5: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::SimpleCursorAdapter>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[II)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.into()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into()), __jni_bindgen::AsJValue::as_jvalue(&arg5)];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/SimpleCursorAdapter\0", "<init>\0", "(Landroid/content/Context;ILandroid/database/Cursor;[Ljava/lang/String;[II)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [bindView](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#bindView(android.view.View,%20android.content.Context,%20android.database.Cursor))
        ///
        /// Required features: "android-content-Context", "android-database-Cursor", "android-view-View"
        #[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-database-Cursor", feature = "android-view-View")))]
        pub fn bindView<'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::content::Context>>, 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::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "bindView", .descriptor == "(Landroid/view/View;Landroid/content/Context;Landroid/database/Cursor;)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.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/SimpleCursorAdapter\0", "bindView\0", "(Landroid/view/View;Landroid/content/Context;Landroid/database/Cursor;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getViewBinder](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#getViewBinder())
        ///
        /// Required features: "android-widget-SimpleCursorAdapter_ViewBinder"
        #[cfg(any(feature = "all", all(feature = "android-widget-SimpleCursorAdapter_ViewBinder")))]
        pub fn getViewBinder<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::SimpleCursorAdapter_ViewBinder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "getViewBinder", .descriptor == "()Landroid/widget/SimpleCursorAdapter$ViewBinder;"
            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/SimpleCursorAdapter\0", "getViewBinder\0", "()Landroid/widget/SimpleCursorAdapter$ViewBinder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setViewBinder](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setViewBinder(android.widget.SimpleCursorAdapter.ViewBinder))
        ///
        /// Required features: "android-widget-SimpleCursorAdapter_ViewBinder"
        #[cfg(any(feature = "all", all(feature = "android-widget-SimpleCursorAdapter_ViewBinder")))]
        pub fn setViewBinder<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::SimpleCursorAdapter_ViewBinder>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setViewBinder", .descriptor == "(Landroid/widget/SimpleCursorAdapter$ViewBinder;)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/SimpleCursorAdapter\0", "setViewBinder\0", "(Landroid/widget/SimpleCursorAdapter$ViewBinder;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setViewImage](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setViewImage(android.widget.ImageView,%20java.lang.String))
        ///
        /// Required features: "android-widget-ImageView", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-widget-ImageView", feature = "java-lang-String")))]
        pub fn setViewImage<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::ImageView>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setViewImage", .descriptor == "(Landroid/widget/ImageView;Ljava/lang/String;)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/SimpleCursorAdapter\0", "setViewImage\0", "(Landroid/widget/ImageView;Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setViewText](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setViewText(android.widget.TextView,%20java.lang.String))
        ///
        /// Required features: "android-widget-TextView", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-widget-TextView", feature = "java-lang-String")))]
        pub fn setViewText<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::TextView>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setViewText", .descriptor == "(Landroid/widget/TextView;Ljava/lang/String;)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/SimpleCursorAdapter\0", "setViewText\0", "(Landroid/widget/TextView;Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getStringConversionColumn](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#getStringConversionColumn())
        pub fn getStringConversionColumn<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "getStringConversionColumn", .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/SimpleCursorAdapter\0", "getStringConversionColumn\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setStringConversionColumn](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setStringConversionColumn(int))
        pub fn setStringConversionColumn<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setStringConversionColumn", .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/SimpleCursorAdapter\0", "setStringConversionColumn\0", "(I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getCursorToStringConverter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#getCursorToStringConverter())
        ///
        /// Required features: "android-widget-SimpleCursorAdapter_CursorToStringConverter"
        #[cfg(any(feature = "all", all(feature = "android-widget-SimpleCursorAdapter_CursorToStringConverter")))]
        pub fn getCursorToStringConverter<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::widget::SimpleCursorAdapter_CursorToStringConverter>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "getCursorToStringConverter", .descriptor == "()Landroid/widget/SimpleCursorAdapter$CursorToStringConverter;"
            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/SimpleCursorAdapter\0", "getCursorToStringConverter\0", "()Landroid/widget/SimpleCursorAdapter$CursorToStringConverter;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setCursorToStringConverter](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#setCursorToStringConverter(android.widget.SimpleCursorAdapter.CursorToStringConverter))
        ///
        /// Required features: "android-widget-SimpleCursorAdapter_CursorToStringConverter"
        #[cfg(any(feature = "all", all(feature = "android-widget-SimpleCursorAdapter_CursorToStringConverter")))]
        pub fn setCursorToStringConverter<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::SimpleCursorAdapter_CursorToStringConverter>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "setCursorToStringConverter", .descriptor == "(Landroid/widget/SimpleCursorAdapter$CursorToStringConverter;)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/SimpleCursorAdapter\0", "setCursorToStringConverter\0", "(Landroid/widget/SimpleCursorAdapter$CursorToStringConverter;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [convertToString](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#convertToString(android.database.Cursor))
        ///
        /// Required features: "android-database-Cursor", "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "android-database-Cursor", feature = "java-lang-CharSequence")))]
        pub fn convertToString<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>) -> __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/SimpleCursorAdapter", java.flags == PUBLIC, .name == "convertToString", .descriptor == "(Landroid/database/Cursor;)Ljava/lang/CharSequence;"
            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/SimpleCursorAdapter\0", "convertToString\0", "(Landroid/database/Cursor;)Ljava/lang/CharSequence;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [swapCursor](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#swapCursor(android.database.Cursor))
        ///
        /// Required features: "android-database-Cursor"
        #[cfg(any(feature = "all", all(feature = "android-database-Cursor")))]
        pub fn swapCursor<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::database::Cursor>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "swapCursor", .descriptor == "(Landroid/database/Cursor;)Landroid/database/Cursor;"
            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/SimpleCursorAdapter\0", "swapCursor\0", "(Landroid/database/Cursor;)Landroid/database/Cursor;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [changeCursorAndColumns](https://developer.android.com/reference/android/widget/SimpleCursorAdapter.html#changeCursorAndColumns(android.database.Cursor,%20java.lang.String%5B%5D,%20int%5B%5D))
        ///
        /// Required features: "android-database-Cursor", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-database-Cursor", feature = "java-lang-String")))]
        pub fn changeCursorAndColumns<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::database::Cursor>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::ObjectArray<crate::java::lang::String, crate::java::lang::Throwable>>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/widget/SimpleCursorAdapter", java.flags == PUBLIC, .name == "changeCursorAndColumns", .descriptor == "(Landroid/database/Cursor;[Ljava/lang/String;[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.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/SimpleCursorAdapter\0", "changeCursorAndColumns\0", "(Landroid/database/Cursor;[Ljava/lang/String;[I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}