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-text-method-TransformationMethod"))]
__jni_bindgen! {
    /// public interface [TransformationMethod](https://developer.android.com/reference/android/text/method/TransformationMethod.html)
    ///
    /// Required feature: "android-text-method-TransformationMethod"
    public interface TransformationMethod ("android/text/method/TransformationMethod") extends crate::java::lang::Object {

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

        /// [onFocusChanged](https://developer.android.com/reference/android/text/method/TransformationMethod.html#onFocusChanged(android.view.View,%20java.lang.CharSequence,%20boolean,%20int,%20android.graphics.Rect))
        ///
        /// Required features: "android-graphics-Rect", "android-view-View", "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "android-graphics-Rect", feature = "android-view-View", feature = "java-lang-CharSequence")))]
        pub fn onFocusChanged<'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::java::lang::CharSequence>>, arg2: bool, arg3: i32, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::Rect>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/text/method/TransformationMethod", java.flags == PUBLIC | ABSTRACT, .name == "onFocusChanged", .descriptor == "(Landroid/view/View;Ljava/lang/CharSequence;ZILandroid/graphics/Rect;)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), __jni_bindgen::AsJValue::as_jvalue(&arg4.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/text/method/TransformationMethod\0", "onFocusChanged\0", "(Landroid/view/View;Ljava/lang/CharSequence;ZILandroid/graphics/Rect;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}