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-inputmethodservice-AbstractInputMethodService_AbstractInputMethodImpl"))]
__jni_bindgen! {
    /// public class [AbstractInputMethodService.AbstractInputMethodImpl](https://developer.android.com/reference/android/inputmethodservice/AbstractInputMethodService.AbstractInputMethodImpl.html)
    ///
    /// Required feature: "android-inputmethodservice-AbstractInputMethodService_AbstractInputMethodImpl"
    public class AbstractInputMethodService_AbstractInputMethodImpl ("android/inputmethodservice/AbstractInputMethodService$AbstractInputMethodImpl") extends crate::java::lang::Object, implements crate::android::view::inputmethod::InputMethod {

        /// [AbstractInputMethodImpl](https://developer.android.com/reference/android/inputmethodservice/AbstractInputMethodService.AbstractInputMethodImpl.html#AbstractInputMethodImpl(android.inputmethodservice.AbstractInputMethodService))
        ///
        /// Required features: "android-inputmethodservice-AbstractInputMethodService"
        #[cfg(any(feature = "all", all(feature = "android-inputmethodservice-AbstractInputMethodService")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::inputmethodservice::AbstractInputMethodService>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::inputmethodservice::AbstractInputMethodService_AbstractInputMethodImpl>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/inputmethodservice/AbstractInputMethodService$AbstractInputMethodImpl", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/inputmethodservice/AbstractInputMethodService;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/inputmethodservice/AbstractInputMethodService$AbstractInputMethodImpl\0", "<init>\0", "(Landroid/inputmethodservice/AbstractInputMethodService;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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