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

        /// [getInstance](https://developer.android.com/reference/android/view/Choreographer.html#getInstance())
        ///
        /// Required features: "android-view-Choreographer"
        #[cfg(any(feature = "all", all(feature = "android-view-Choreographer")))]
        pub fn getInstance<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::Choreographer>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/view/Choreographer", java.flags == PUBLIC | STATIC, .name == "getInstance", .descriptor == "()Landroid/view/Choreographer;"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/view/Choreographer\0", "getInstance\0", "()Landroid/view/Choreographer;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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