// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-app-Dialog"))]
__jni_bindgen! {
/// public class [Dialog](https://developer.android.com/reference/android/app/Dialog.html)
///
/// Required feature: "android-app-Dialog"
public class Dialog ("android/app/Dialog") extends crate::java::lang::Object, implements crate::android::content::DialogInterface, crate::android::view::Window_Callback, crate::android::view::KeyEvent_Callback, crate::android::view::View_OnCreateContextMenuListener {
/// [Dialog](https://developer.android.com/reference/android/app/Dialog.html#Dialog(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::app::Dialog>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", 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/app/Dialog\0", "<init>\0", "(Landroid/content/Context;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [Dialog](https://developer.android.com/reference/android/app/Dialog.html#Dialog(android.content.Context,%20int))
///
/// Required features: "android-content-Context"
#[cfg(any(feature = "all", all(feature = "android-content-Context")))]
pub fn new_Context_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: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::app::Dialog>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/Dialog\0", "<init>\0", "(Landroid/content/Context;I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getContext](https://developer.android.com/reference/android/app/Dialog.html#getContext())
///
/// Required features: "android-content-Context"
#[cfg(any(feature = "all", all(feature = "android-content-Context")))]
pub fn getContext<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::Context>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "getContext", .descriptor == "()Landroid/content/Context;"
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/app/Dialog\0", "getContext\0", "()Landroid/content/Context;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setOwnerActivity](https://developer.android.com/reference/android/app/Dialog.html#setOwnerActivity(android.app.Activity))
///
/// Required features: "android-app-Activity"
#[cfg(any(feature = "all", all(feature = "android-app-Activity")))]
pub fn setOwnerActivity<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Activity>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "setOwnerActivity", .descriptor == "(Landroid/app/Activity;)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/app/Dialog\0", "setOwnerActivity\0", "(Landroid/app/Activity;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getOwnerActivity](https://developer.android.com/reference/android/app/Dialog.html#getOwnerActivity())
///
/// Required features: "android-app-Activity"
#[cfg(any(feature = "all", all(feature = "android-app-Activity")))]
pub fn getOwnerActivity<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::Activity>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "getOwnerActivity", .descriptor == "()Landroid/app/Activity;"
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/app/Dialog\0", "getOwnerActivity\0", "()Landroid/app/Activity;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isShowing](https://developer.android.com/reference/android/app/Dialog.html#isShowing())
pub fn isShowing<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "isShowing", .descriptor == "()Z"
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/app/Dialog\0", "isShowing\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [show](https://developer.android.com/reference/android/app/Dialog.html#show())
pub fn show<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "show", .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/app/Dialog\0", "show\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [hide](https://developer.android.com/reference/android/app/Dialog.html#hide())
pub fn hide<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "hide", .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/app/Dialog\0", "hide\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [dismiss](https://developer.android.com/reference/android/app/Dialog.html#dismiss())
pub fn dismiss<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "dismiss", .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/app/Dialog\0", "dismiss\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onSaveInstanceState](https://developer.android.com/reference/android/app/Dialog.html#onSaveInstanceState())
///
/// Required features: "android-os-Bundle"
#[cfg(any(feature = "all", all(feature = "android-os-Bundle")))]
pub fn onSaveInstanceState<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Bundle>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onSaveInstanceState", .descriptor == "()Landroid/os/Bundle;"
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/app/Dialog\0", "onSaveInstanceState\0", "()Landroid/os/Bundle;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onRestoreInstanceState](https://developer.android.com/reference/android/app/Dialog.html#onRestoreInstanceState(android.os.Bundle))
///
/// Required features: "android-os-Bundle"
#[cfg(any(feature = "all", all(feature = "android-os-Bundle")))]
pub fn onRestoreInstanceState<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onRestoreInstanceState", .descriptor == "(Landroid/os/Bundle;)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/app/Dialog\0", "onRestoreInstanceState\0", "(Landroid/os/Bundle;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getWindow](https://developer.android.com/reference/android/app/Dialog.html#getWindow())
///
/// Required features: "android-view-Window"
#[cfg(any(feature = "all", all(feature = "android-view-Window")))]
pub fn getWindow<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::Window>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "getWindow", .descriptor == "()Landroid/view/Window;"
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/app/Dialog\0", "getWindow\0", "()Landroid/view/Window;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getCurrentFocus](https://developer.android.com/reference/android/app/Dialog.html#getCurrentFocus())
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn getCurrentFocus<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::View>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "getCurrentFocus", .descriptor == "()Landroid/view/View;"
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/app/Dialog\0", "getCurrentFocus\0", "()Landroid/view/View;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [findViewById](https://developer.android.com/reference/android/app/Dialog.html#findViewById(int))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn findViewById<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::View>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "findViewById", .descriptor == "(I)Landroid/view/View;"
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/app/Dialog\0", "findViewById\0", "(I)Landroid/view/View;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setContentView](https://developer.android.com/reference/android/app/Dialog.html#setContentView(int))
pub fn setContentView_int<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setContentView", .descriptor == "(I)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/app/Dialog\0", "setContentView\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setContentView](https://developer.android.com/reference/android/app/Dialog.html#setContentView(android.view.View))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn setContentView_View<'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<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setContentView", .descriptor == "(Landroid/view/View;)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/app/Dialog\0", "setContentView\0", "(Landroid/view/View;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setContentView](https://developer.android.com/reference/android/app/Dialog.html#setContentView(android.view.View,%20android.view.ViewGroup.LayoutParams))
///
/// Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"
#[cfg(any(feature = "all", all(feature = "android-view-View", feature = "android-view-ViewGroup_LayoutParams")))]
pub fn setContentView_View_LayoutParams<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ViewGroup_LayoutParams>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setContentView", .descriptor == "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __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/app/Dialog\0", "setContentView\0", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [addContentView](https://developer.android.com/reference/android/app/Dialog.html#addContentView(android.view.View,%20android.view.ViewGroup.LayoutParams))
///
/// Required features: "android-view-View", "android-view-ViewGroup_LayoutParams"
#[cfg(any(feature = "all", all(feature = "android-view-View", feature = "android-view-ViewGroup_LayoutParams")))]
pub fn addContentView<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ViewGroup_LayoutParams>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "addContentView", .descriptor == "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __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/app/Dialog\0", "addContentView\0", "(Landroid/view/View;Landroid/view/ViewGroup$LayoutParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTitle](https://developer.android.com/reference/android/app/Dialog.html#setTitle(java.lang.CharSequence))
///
/// Required features: "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
pub fn setTitle_CharSequence<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setTitle", .descriptor == "(Ljava/lang/CharSequence;)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/app/Dialog\0", "setTitle\0", "(Ljava/lang/CharSequence;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setTitle](https://developer.android.com/reference/android/app/Dialog.html#setTitle(int))
pub fn setTitle_int<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setTitle", .descriptor == "(I)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/app/Dialog\0", "setTitle\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onKeyDown](https://developer.android.com/reference/android/app/Dialog.html#onKeyDown(int,%20android.view.KeyEvent))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn onKeyDown<'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/app/Dialog", java.flags == PUBLIC, .name == "onKeyDown", .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/app/Dialog\0", "onKeyDown\0", "(ILandroid/view/KeyEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onKeyLongPress](https://developer.android.com/reference/android/app/Dialog.html#onKeyLongPress(int,%20android.view.KeyEvent))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn onKeyLongPress<'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/app/Dialog", java.flags == PUBLIC, .name == "onKeyLongPress", .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/app/Dialog\0", "onKeyLongPress\0", "(ILandroid/view/KeyEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onKeyUp](https://developer.android.com/reference/android/app/Dialog.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/app/Dialog", 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/app/Dialog\0", "onKeyUp\0", "(ILandroid/view/KeyEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onKeyMultiple](https://developer.android.com/reference/android/app/Dialog.html#onKeyMultiple(int,%20int,%20android.view.KeyEvent))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn onKeyMultiple<'env>(&'env self, arg0: i32, arg1: i32, arg2: 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/app/Dialog", java.flags == PUBLIC, .name == "onKeyMultiple", .descriptor == "(IILandroid/view/KeyEvent;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/Dialog\0", "onKeyMultiple\0", "(IILandroid/view/KeyEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onBackPressed](https://developer.android.com/reference/android/app/Dialog.html#onBackPressed())
pub fn onBackPressed<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onBackPressed", .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/app/Dialog\0", "onBackPressed\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onTouchEvent](https://developer.android.com/reference/android/app/Dialog.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/app/Dialog", 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/app/Dialog\0", "onTouchEvent\0", "(Landroid/view/MotionEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onTrackballEvent](https://developer.android.com/reference/android/app/Dialog.html#onTrackballEvent(android.view.MotionEvent))
///
/// Required features: "android-view-MotionEvent"
#[cfg(any(feature = "all", all(feature = "android-view-MotionEvent")))]
pub fn onTrackballEvent<'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/app/Dialog", java.flags == PUBLIC, .name == "onTrackballEvent", .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/app/Dialog\0", "onTrackballEvent\0", "(Landroid/view/MotionEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onWindowAttributesChanged](https://developer.android.com/reference/android/app/Dialog.html#onWindowAttributesChanged(android.view.WindowManager.LayoutParams))
///
/// Required features: "android-view-WindowManager_LayoutParams"
#[cfg(any(feature = "all", all(feature = "android-view-WindowManager_LayoutParams")))]
pub fn onWindowAttributesChanged<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::WindowManager_LayoutParams>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onWindowAttributesChanged", .descriptor == "(Landroid/view/WindowManager$LayoutParams;)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/app/Dialog\0", "onWindowAttributesChanged\0", "(Landroid/view/WindowManager$LayoutParams;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onContentChanged](https://developer.android.com/reference/android/app/Dialog.html#onContentChanged())
pub fn onContentChanged<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onContentChanged", .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/app/Dialog\0", "onContentChanged\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onWindowFocusChanged](https://developer.android.com/reference/android/app/Dialog.html#onWindowFocusChanged(boolean))
pub fn onWindowFocusChanged<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onWindowFocusChanged", .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/app/Dialog\0", "onWindowFocusChanged\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onAttachedToWindow](https://developer.android.com/reference/android/app/Dialog.html#onAttachedToWindow())
pub fn onAttachedToWindow<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onAttachedToWindow", .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/app/Dialog\0", "onAttachedToWindow\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onDetachedFromWindow](https://developer.android.com/reference/android/app/Dialog.html#onDetachedFromWindow())
pub fn onDetachedFromWindow<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onDetachedFromWindow", .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/app/Dialog\0", "onDetachedFromWindow\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [dispatchKeyEvent](https://developer.android.com/reference/android/app/Dialog.html#dispatchKeyEvent(android.view.KeyEvent))
///
/// Required features: "android-view-KeyEvent"
#[cfg(any(feature = "all", all(feature = "android-view-KeyEvent")))]
pub fn dispatchKeyEvent<'env>(&'env self, arg0: 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/app/Dialog", java.flags == PUBLIC, .name == "dispatchKeyEvent", .descriptor == "(Landroid/view/KeyEvent;)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/app/Dialog\0", "dispatchKeyEvent\0", "(Landroid/view/KeyEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [dispatchTouchEvent](https://developer.android.com/reference/android/app/Dialog.html#dispatchTouchEvent(android.view.MotionEvent))
///
/// Required features: "android-view-MotionEvent"
#[cfg(any(feature = "all", all(feature = "android-view-MotionEvent")))]
pub fn dispatchTouchEvent<'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/app/Dialog", java.flags == PUBLIC, .name == "dispatchTouchEvent", .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/app/Dialog\0", "dispatchTouchEvent\0", "(Landroid/view/MotionEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [dispatchTrackballEvent](https://developer.android.com/reference/android/app/Dialog.html#dispatchTrackballEvent(android.view.MotionEvent))
///
/// Required features: "android-view-MotionEvent"
#[cfg(any(feature = "all", all(feature = "android-view-MotionEvent")))]
pub fn dispatchTrackballEvent<'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/app/Dialog", java.flags == PUBLIC, .name == "dispatchTrackballEvent", .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/app/Dialog\0", "dispatchTrackballEvent\0", "(Landroid/view/MotionEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [dispatchPopulateAccessibilityEvent](https://developer.android.com/reference/android/app/Dialog.html#dispatchPopulateAccessibilityEvent(android.view.accessibility.AccessibilityEvent))
///
/// Required features: "android-view-accessibility-AccessibilityEvent"
#[cfg(any(feature = "all", all(feature = "android-view-accessibility-AccessibilityEvent")))]
pub fn dispatchPopulateAccessibilityEvent<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::accessibility::AccessibilityEvent>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "dispatchPopulateAccessibilityEvent", .descriptor == "(Landroid/view/accessibility/AccessibilityEvent;)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/app/Dialog\0", "dispatchPopulateAccessibilityEvent\0", "(Landroid/view/accessibility/AccessibilityEvent;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCreatePanelView](https://developer.android.com/reference/android/app/Dialog.html#onCreatePanelView(int))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn onCreatePanelView<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::View>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onCreatePanelView", .descriptor == "(I)Landroid/view/View;"
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/app/Dialog\0", "onCreatePanelView\0", "(I)Landroid/view/View;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCreatePanelMenu](https://developer.android.com/reference/android/app/Dialog.html#onCreatePanelMenu(int,%20android.view.Menu))
///
/// Required features: "android-view-Menu"
#[cfg(any(feature = "all", all(feature = "android-view-Menu")))]
pub fn onCreatePanelMenu<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::Menu>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onCreatePanelMenu", .descriptor == "(ILandroid/view/Menu;)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/app/Dialog\0", "onCreatePanelMenu\0", "(ILandroid/view/Menu;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onPreparePanel](https://developer.android.com/reference/android/app/Dialog.html#onPreparePanel(int,%20android.view.View,%20android.view.Menu))
///
/// Required features: "android-view-Menu", "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-Menu", feature = "android-view-View")))]
pub fn onPreparePanel<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::Menu>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onPreparePanel", .descriptor == "(ILandroid/view/View;Landroid/view/Menu;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/Dialog\0", "onPreparePanel\0", "(ILandroid/view/View;Landroid/view/Menu;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onMenuOpened](https://developer.android.com/reference/android/app/Dialog.html#onMenuOpened(int,%20android.view.Menu))
///
/// Required features: "android-view-Menu"
#[cfg(any(feature = "all", all(feature = "android-view-Menu")))]
pub fn onMenuOpened<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::Menu>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onMenuOpened", .descriptor == "(ILandroid/view/Menu;)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/app/Dialog\0", "onMenuOpened\0", "(ILandroid/view/Menu;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onMenuItemSelected](https://developer.android.com/reference/android/app/Dialog.html#onMenuItemSelected(int,%20android.view.MenuItem))
///
/// Required features: "android-view-MenuItem"
#[cfg(any(feature = "all", all(feature = "android-view-MenuItem")))]
pub fn onMenuItemSelected<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::MenuItem>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onMenuItemSelected", .descriptor == "(ILandroid/view/MenuItem;)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/app/Dialog\0", "onMenuItemSelected\0", "(ILandroid/view/MenuItem;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onPanelClosed](https://developer.android.com/reference/android/app/Dialog.html#onPanelClosed(int,%20android.view.Menu))
///
/// Required features: "android-view-Menu"
#[cfg(any(feature = "all", all(feature = "android-view-Menu")))]
pub fn onPanelClosed<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::Menu>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onPanelClosed", .descriptor == "(ILandroid/view/Menu;)V"
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/app/Dialog\0", "onPanelClosed\0", "(ILandroid/view/Menu;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCreateOptionsMenu](https://developer.android.com/reference/android/app/Dialog.html#onCreateOptionsMenu(android.view.Menu))
///
/// Required features: "android-view-Menu"
#[cfg(any(feature = "all", all(feature = "android-view-Menu")))]
pub fn onCreateOptionsMenu<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::Menu>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onCreateOptionsMenu", .descriptor == "(Landroid/view/Menu;)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/app/Dialog\0", "onCreateOptionsMenu\0", "(Landroid/view/Menu;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onPrepareOptionsMenu](https://developer.android.com/reference/android/app/Dialog.html#onPrepareOptionsMenu(android.view.Menu))
///
/// Required features: "android-view-Menu"
#[cfg(any(feature = "all", all(feature = "android-view-Menu")))]
pub fn onPrepareOptionsMenu<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::Menu>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onPrepareOptionsMenu", .descriptor == "(Landroid/view/Menu;)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/app/Dialog\0", "onPrepareOptionsMenu\0", "(Landroid/view/Menu;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onOptionsItemSelected](https://developer.android.com/reference/android/app/Dialog.html#onOptionsItemSelected(android.view.MenuItem))
///
/// Required features: "android-view-MenuItem"
#[cfg(any(feature = "all", all(feature = "android-view-MenuItem")))]
pub fn onOptionsItemSelected<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::MenuItem>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onOptionsItemSelected", .descriptor == "(Landroid/view/MenuItem;)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/app/Dialog\0", "onOptionsItemSelected\0", "(Landroid/view/MenuItem;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onOptionsMenuClosed](https://developer.android.com/reference/android/app/Dialog.html#onOptionsMenuClosed(android.view.Menu))
///
/// Required features: "android-view-Menu"
#[cfg(any(feature = "all", all(feature = "android-view-Menu")))]
pub fn onOptionsMenuClosed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::Menu>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onOptionsMenuClosed", .descriptor == "(Landroid/view/Menu;)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/app/Dialog\0", "onOptionsMenuClosed\0", "(Landroid/view/Menu;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [openOptionsMenu](https://developer.android.com/reference/android/app/Dialog.html#openOptionsMenu())
pub fn openOptionsMenu<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "openOptionsMenu", .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/app/Dialog\0", "openOptionsMenu\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [closeOptionsMenu](https://developer.android.com/reference/android/app/Dialog.html#closeOptionsMenu())
pub fn closeOptionsMenu<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "closeOptionsMenu", .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/app/Dialog\0", "closeOptionsMenu\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onCreateContextMenu](https://developer.android.com/reference/android/app/Dialog.html#onCreateContextMenu(android.view.ContextMenu,%20android.view.View,%20android.view.ContextMenu.ContextMenuInfo))
///
/// Required features: "android-view-ContextMenu", "android-view-ContextMenu_ContextMenuInfo", "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-ContextMenu", feature = "android-view-ContextMenu_ContextMenuInfo", feature = "android-view-View")))]
pub fn onCreateContextMenu<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ContextMenu>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::View>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::ContextMenu_ContextMenuInfo>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onCreateContextMenu", .descriptor == "(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/ContextMenu$ContextMenuInfo;)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.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/Dialog\0", "onCreateContextMenu\0", "(Landroid/view/ContextMenu;Landroid/view/View;Landroid/view/ContextMenu$ContextMenuInfo;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [registerForContextMenu](https://developer.android.com/reference/android/app/Dialog.html#registerForContextMenu(android.view.View))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn registerForContextMenu<'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<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "registerForContextMenu", .descriptor == "(Landroid/view/View;)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/app/Dialog\0", "registerForContextMenu\0", "(Landroid/view/View;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [unregisterForContextMenu](https://developer.android.com/reference/android/app/Dialog.html#unregisterForContextMenu(android.view.View))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn unregisterForContextMenu<'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<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "unregisterForContextMenu", .descriptor == "(Landroid/view/View;)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/app/Dialog\0", "unregisterForContextMenu\0", "(Landroid/view/View;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [openContextMenu](https://developer.android.com/reference/android/app/Dialog.html#openContextMenu(android.view.View))
///
/// Required features: "android-view-View"
#[cfg(any(feature = "all", all(feature = "android-view-View")))]
pub fn openContextMenu<'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<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "openContextMenu", .descriptor == "(Landroid/view/View;)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/app/Dialog\0", "openContextMenu\0", "(Landroid/view/View;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onContextItemSelected](https://developer.android.com/reference/android/app/Dialog.html#onContextItemSelected(android.view.MenuItem))
///
/// Required features: "android-view-MenuItem"
#[cfg(any(feature = "all", all(feature = "android-view-MenuItem")))]
pub fn onContextItemSelected<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::MenuItem>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onContextItemSelected", .descriptor == "(Landroid/view/MenuItem;)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/app/Dialog\0", "onContextItemSelected\0", "(Landroid/view/MenuItem;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onContextMenuClosed](https://developer.android.com/reference/android/app/Dialog.html#onContextMenuClosed(android.view.Menu))
///
/// Required features: "android-view-Menu"
#[cfg(any(feature = "all", all(feature = "android-view-Menu")))]
pub fn onContextMenuClosed<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::view::Menu>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onContextMenuClosed", .descriptor == "(Landroid/view/Menu;)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/app/Dialog\0", "onContextMenuClosed\0", "(Landroid/view/Menu;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [onSearchRequested](https://developer.android.com/reference/android/app/Dialog.html#onSearchRequested())
pub fn onSearchRequested<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "onSearchRequested", .descriptor == "()Z"
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/app/Dialog\0", "onSearchRequested\0", "()Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [takeKeyEvents](https://developer.android.com/reference/android/app/Dialog.html#takeKeyEvents(boolean))
pub fn takeKeyEvents<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "takeKeyEvents", .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/app/Dialog\0", "takeKeyEvents\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [requestWindowFeature](https://developer.android.com/reference/android/app/Dialog.html#requestWindowFeature(int))
pub fn requestWindowFeature<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "requestWindowFeature", .descriptor == "(I)Z"
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/app/Dialog\0", "requestWindowFeature\0", "(I)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setFeatureDrawableResource](https://developer.android.com/reference/android/app/Dialog.html#setFeatureDrawableResource(int,%20int))
pub fn setFeatureDrawableResource<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "setFeatureDrawableResource", .descriptor == "(II)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/app/Dialog\0", "setFeatureDrawableResource\0", "(II)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setFeatureDrawableUri](https://developer.android.com/reference/android/app/Dialog.html#setFeatureDrawableUri(int,%20android.net.Uri))
///
/// Required features: "android-net-Uri"
#[cfg(any(feature = "all", all(feature = "android-net-Uri")))]
pub fn setFeatureDrawableUri<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "setFeatureDrawableUri", .descriptor == "(ILandroid/net/Uri;)V"
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/app/Dialog\0", "setFeatureDrawableUri\0", "(ILandroid/net/Uri;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setFeatureDrawable](https://developer.android.com/reference/android/app/Dialog.html#setFeatureDrawable(int,%20android.graphics.drawable.Drawable))
///
/// Required features: "android-graphics-drawable-Drawable"
#[cfg(any(feature = "all", all(feature = "android-graphics-drawable-Drawable")))]
pub fn setFeatureDrawable<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::graphics::drawable::Drawable>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "setFeatureDrawable", .descriptor == "(ILandroid/graphics/drawable/Drawable;)V"
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/app/Dialog\0", "setFeatureDrawable\0", "(ILandroid/graphics/drawable/Drawable;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setFeatureDrawableAlpha](https://developer.android.com/reference/android/app/Dialog.html#setFeatureDrawableAlpha(int,%20int))
pub fn setFeatureDrawableAlpha<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "setFeatureDrawableAlpha", .descriptor == "(II)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/app/Dialog\0", "setFeatureDrawableAlpha\0", "(II)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getLayoutInflater](https://developer.android.com/reference/android/app/Dialog.html#getLayoutInflater())
///
/// Required features: "android-view-LayoutInflater"
#[cfg(any(feature = "all", all(feature = "android-view-LayoutInflater")))]
pub fn getLayoutInflater<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::LayoutInflater>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "getLayoutInflater", .descriptor == "()Landroid/view/LayoutInflater;"
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/app/Dialog\0", "getLayoutInflater\0", "()Landroid/view/LayoutInflater;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setCancelable](https://developer.android.com/reference/android/app/Dialog.html#setCancelable(boolean))
pub fn setCancelable<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setCancelable", .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/app/Dialog\0", "setCancelable\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setCanceledOnTouchOutside](https://developer.android.com/reference/android/app/Dialog.html#setCanceledOnTouchOutside(boolean))
pub fn setCanceledOnTouchOutside<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setCanceledOnTouchOutside", .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/app/Dialog\0", "setCanceledOnTouchOutside\0", "(Z)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [cancel](https://developer.android.com/reference/android/app/Dialog.html#cancel())
pub fn cancel<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "cancel", .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/app/Dialog\0", "cancel\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setOnCancelListener](https://developer.android.com/reference/android/app/Dialog.html#setOnCancelListener(android.content.DialogInterface.OnCancelListener))
///
/// Required features: "android-content-DialogInterface_OnCancelListener"
#[cfg(any(feature = "all", all(feature = "android-content-DialogInterface_OnCancelListener")))]
pub fn setOnCancelListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::DialogInterface_OnCancelListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setOnCancelListener", .descriptor == "(Landroid/content/DialogInterface$OnCancelListener;)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/app/Dialog\0", "setOnCancelListener\0", "(Landroid/content/DialogInterface$OnCancelListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setCancelMessage](https://developer.android.com/reference/android/app/Dialog.html#setCancelMessage(android.os.Message))
///
/// Required features: "android-os-Message"
#[cfg(any(feature = "all", all(feature = "android-os-Message")))]
pub fn setCancelMessage<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Message>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setCancelMessage", .descriptor == "(Landroid/os/Message;)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/app/Dialog\0", "setCancelMessage\0", "(Landroid/os/Message;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setOnDismissListener](https://developer.android.com/reference/android/app/Dialog.html#setOnDismissListener(android.content.DialogInterface.OnDismissListener))
///
/// Required features: "android-content-DialogInterface_OnDismissListener"
#[cfg(any(feature = "all", all(feature = "android-content-DialogInterface_OnDismissListener")))]
pub fn setOnDismissListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::DialogInterface_OnDismissListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setOnDismissListener", .descriptor == "(Landroid/content/DialogInterface$OnDismissListener;)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/app/Dialog\0", "setOnDismissListener\0", "(Landroid/content/DialogInterface$OnDismissListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setDismissMessage](https://developer.android.com/reference/android/app/Dialog.html#setDismissMessage(android.os.Message))
///
/// Required features: "android-os-Message"
#[cfg(any(feature = "all", all(feature = "android-os-Message")))]
pub fn setDismissMessage<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Message>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setDismissMessage", .descriptor == "(Landroid/os/Message;)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/app/Dialog\0", "setDismissMessage\0", "(Landroid/os/Message;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setVolumeControlStream](https://developer.android.com/reference/android/app/Dialog.html#setVolumeControlStream(int))
pub fn setVolumeControlStream<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "setVolumeControlStream", .descriptor == "(I)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/app/Dialog\0", "setVolumeControlStream\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getVolumeControlStream](https://developer.android.com/reference/android/app/Dialog.html#getVolumeControlStream())
pub fn getVolumeControlStream<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC | FINAL, .name == "getVolumeControlStream", .descriptor == "()I"
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/app/Dialog\0", "getVolumeControlStream\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [setOnKeyListener](https://developer.android.com/reference/android/app/Dialog.html#setOnKeyListener(android.content.DialogInterface.OnKeyListener))
///
/// Required features: "android-content-DialogInterface_OnKeyListener"
#[cfg(any(feature = "all", all(feature = "android-content-DialogInterface_OnKeyListener")))]
pub fn setOnKeyListener<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::DialogInterface_OnKeyListener>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/app/Dialog", java.flags == PUBLIC, .name == "setOnKeyListener", .descriptor == "(Landroid/content/DialogInterface$OnKeyListener;)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/app/Dialog\0", "setOnKeyListener\0", "(Landroid/content/DialogInterface$OnKeyListener;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}