// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-widget-ZoomButton"))]
__jni_bindgen! {
/// public class [ZoomButton](https://developer.android.com/reference/android/widget/ZoomButton.html)
///
/// Required feature: "android-widget-ZoomButton"
public class ZoomButton ("android/widget/ZoomButton") extends crate::android::widget::ImageButton, implements crate::android::view::View_OnLongClickListener {
/// [ZoomButton](https://developer.android.com/reference/android/widget/ZoomButton.html#ZoomButton(android.content.Context))
///
/// Required features: "android-content-Context"
#[cfg(any(feature = "all", all(feature = "android-content-Context")))]
pub fn new_Context<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::ZoomButton>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/ZoomButton\0", "<init>\0", "(Landroid/content/Context;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [ZoomButton](https://developer.android.com/reference/android/widget/ZoomButton.html#ZoomButton(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::widget::ZoomButton>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", 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/widget/ZoomButton\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [ZoomButton](https://developer.android.com/reference/android/widget/ZoomButton.html#ZoomButton(android.content.Context,%20android.util.AttributeSet,%20int))
///
/// 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_int<'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>>, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::ZoomButton>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;I)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)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/ZoomButton\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [ZoomButton](https://developer.android.com/reference/android/widget/ZoomButton.html#ZoomButton(android.content.Context,%20android.util.AttributeSet,%20int,%20int))
///
/// 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_int_int<'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>>, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::widget::ZoomButton>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/util/AttributeSet;II)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)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/widget/ZoomButton\0", "<init>\0", "(Landroid/content/Context;Landroid/util/AttributeSet;II)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [onTouchEvent](https://developer.android.com/reference/android/widget/ZoomButton.html#onTouchEvent(android.view.MotionEvent))
///
/// Required features: "android-view-MotionEvent"
#[cfg(any(feature = "all", all(feature = "android-view-MotionEvent")))]
pub fn onTouchEvent<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::MotionEvent>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", java.flags == PUBLIC, .name == "onTouchEvent", .descriptor == "(Landroid/view/MotionEvent;)Z"
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/widget/ZoomButton\0", "onTouchEvent\0", "(Landroid/view/MotionEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setZoomSpeed](https://developer.android.com/reference/android/widget/ZoomButton.html#setZoomSpeed(long))
pub fn setZoomSpeed<'env>(&'env self, arg0: i64) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", java.flags == PUBLIC, .name == "setZoomSpeed", .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/widget/ZoomButton\0", "setZoomSpeed\0", "(J)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onLongClick](https://developer.android.com/reference/android/widget/ZoomButton.html#onLongClick(android.view.View))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn onLongClick<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", java.flags == PUBLIC, .name == "onLongClick", .descriptor == "(Landroid/view/View;)Z"
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/widget/ZoomButton\0", "onLongClick\0", "(Landroid/view/View;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onKeyUp](https://developer.android.com/reference/android/widget/ZoomButton.html#onKeyUp(int,%20android.view.KeyEvent))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn onKeyUp<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::KeyEvent>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", java.flags == PUBLIC, .name == "onKeyUp", .descriptor == "(ILandroid/view/KeyEvent;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/widget/ZoomButton\0", "onKeyUp\0", "(ILandroid/view/KeyEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setEnabled](https://developer.android.com/reference/android/widget/ZoomButton.html#setEnabled(boolean))
pub fn setEnabled<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", java.flags == PUBLIC, .name == "setEnabled", .descriptor == "(Z)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/widget/ZoomButton\0", "setEnabled\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [dispatchUnhandledMove](https://developer.android.com/reference/android/widget/ZoomButton.html#dispatchUnhandledMove(android.view.View,%20int))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn dispatchUnhandledMove<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/widget/ZoomButton", java.flags == PUBLIC, .name == "dispatchUnhandledMove", .descriptor == "(Landroid/view/View;I)Z"
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/widget/ZoomButton\0", "dispatchUnhandledMove\0", "(Landroid/view/View;I)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getAccessibilityClassName](https://developer.android.com/reference/android/widget/ZoomButton.html#getAccessibilityClassName())
///
/// Required features: "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
pub fn getAccessibilityClassName<'env>(&'env self) -> __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/widget/ZoomButton", java.flags == PUBLIC, .name == "getAccessibilityClassName", .descriptor == "()Ljava/lang/CharSequence;"
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/widget/ZoomButton\0", "getAccessibilityClassName\0", "()Ljava/lang/CharSequence;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}