// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-view-animation-AnticipateOvershootInterpolator"))]
__jni_bindgen! {
/// public class [AnticipateOvershootInterpolator](https://developer.android.com/reference/android/view/animation/AnticipateOvershootInterpolator.html)
///
/// Required feature: "android-view-animation-AnticipateOvershootInterpolator"
public class AnticipateOvershootInterpolator ("android/view/animation/AnticipateOvershootInterpolator") extends crate::android::view::animation::BaseInterpolator {
/// [AnticipateOvershootInterpolator](https://developer.android.com/reference/android/view/animation/AnticipateOvershootInterpolator.html#AnticipateOvershootInterpolator())
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::animation::AnticipateOvershootInterpolator>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/animation/AnticipateOvershootInterpolator", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/animation/AnticipateOvershootInterpolator\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [AnticipateOvershootInterpolator](https://developer.android.com/reference/android/view/animation/AnticipateOvershootInterpolator.html#AnticipateOvershootInterpolator(float))
pub fn new_float<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::animation::AnticipateOvershootInterpolator>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/animation/AnticipateOvershootInterpolator", java.flags == PUBLIC, .name == "<init>", .descriptor == "(F)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/animation/AnticipateOvershootInterpolator\0", "<init>\0", "(F)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [AnticipateOvershootInterpolator](https://developer.android.com/reference/android/view/animation/AnticipateOvershootInterpolator.html#AnticipateOvershootInterpolator(float,%20float))
pub fn new_float_float<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: f32, arg1: f32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::animation::AnticipateOvershootInterpolator>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/animation/AnticipateOvershootInterpolator", java.flags == PUBLIC, .name == "<init>", .descriptor == "(FF)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/animation/AnticipateOvershootInterpolator\0", "<init>\0", "(FF)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [AnticipateOvershootInterpolator](https://developer.android.com/reference/android/view/animation/AnticipateOvershootInterpolator.html#AnticipateOvershootInterpolator(android.content.Context,%20android.util.AttributeSet))
///
/// Required features: "android-content-Context", "android-util-AttributeSet"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "android-util-AttributeSet")))]
pub fn new_Context_AttributeSet<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::AttributeSet>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::animation::AnticipateOvershootInterpolator>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/animation/AnticipateOvershootInterpolator", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/animation/AnticipateOvershootInterpolator\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getInterpolation](https://developer.android.com/reference/android/view/animation/AnticipateOvershootInterpolator.html#getInterpolation(float))
pub fn getInterpolation<'env>(&'env self, arg0: f32) -> __jni_bindgen::std::result::Result<f32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/animation/AnticipateOvershootInterpolator", java.flags == PUBLIC, .name == "getInterpolation", .descriptor == "(F)F"
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/view/animation/AnticipateOvershootInterpolator\0", "getInterpolation\0", "(F)F\0");
__jni_env.call_float_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}