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-animation-TimeAnimator"))]
__jni_bindgen! {
    /// public class [TimeAnimator](https://developer.android.com/reference/android/animation/TimeAnimator.html)
    ///
    /// Required feature: "android-animation-TimeAnimator"
    public class TimeAnimator ("android/animation/TimeAnimator") extends crate::android::animation::ValueAnimator {

        /// [TimeAnimator](https://developer.android.com/reference/android/animation/TimeAnimator.html#TimeAnimator())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::animation::TimeAnimator>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/animation/TimeAnimator", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/animation/TimeAnimator\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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