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-view-animation-Animation_Description"))]
__jni_bindgen! {
    /// public class [Animation.Description](https://developer.android.com/reference/android/view/animation/Animation.Description.html)
    ///
    /// Required feature: "android-view-animation-Animation_Description"
    public class Animation_Description ("android/view/animation/Animation$Description") extends crate::java::lang::Object {

        /// **get** public [type](https://developer.android.com/reference/android/view/animation/Animation.Description.html#type)
        pub fn r#type<'env>(&'env self) -> i32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/view/animation/Animation$Description\0", "type\0", "I\0");
                env.get_int_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [type](https://developer.android.com/reference/android/view/animation/Animation.Description.html#type)
        pub fn set_type<'env>(&'env self, value: i32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/view/animation/Animation$Description\0", "type\0", "I\0");
                env.set_int_field(self.0.object, __jni_field, value)
            }
        }

        /// **get** public [value](https://developer.android.com/reference/android/view/animation/Animation.Description.html#value)
        pub fn value<'env>(&'env self) -> f32 {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/view/animation/Animation$Description\0", "value\0", "F\0");
                env.get_float_field(self.0.object, __jni_field)
            }
        }

        /// **set** public [value](https://developer.android.com/reference/android/view/animation/Animation.Description.html#value)
        pub fn set_value<'env>(&'env self, value: f32) {
            unsafe {
                let env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_field) = env.require_class_field("android/view/animation/Animation$Description\0", "value\0", "F\0");
                env.set_float_field(self.0.object, __jni_field, value)
            }
        }
    }
}