1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-content-DialogInterface"))]
__jni_bindgen! {
/// public interface [DialogInterface](https://developer.android.com/reference/android/content/DialogInterface.html)
///
/// Required feature: "android-content-DialogInterface"
public interface DialogInterface ("android/content/DialogInterface") extends crate::java::lang::Object {
/// [cancel](https://developer.android.com/reference/android/content/DialogInterface.html#cancel())
pub fn cancel<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/DialogInterface", java.flags == PUBLIC | ABSTRACT, .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/content/DialogInterface\0", "cancel\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/content/DialogInterface.html#dismiss())
pub fn dismiss<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/DialogInterface", java.flags == PUBLIC | ABSTRACT, .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/content/DialogInterface\0", "dismiss\0", "()V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [BUTTON1](https://developer.android.com/reference/android/content/DialogInterface.html#BUTTON1)
#[deprecated] pub const BUTTON1 : i32 = -1;
/// public static final [BUTTON2](https://developer.android.com/reference/android/content/DialogInterface.html#BUTTON2)
#[deprecated] pub const BUTTON2 : i32 = -2;
/// public static final [BUTTON3](https://developer.android.com/reference/android/content/DialogInterface.html#BUTTON3)
#[deprecated] pub const BUTTON3 : i32 = -3;
/// public static final [BUTTON_NEGATIVE](https://developer.android.com/reference/android/content/DialogInterface.html#BUTTON_NEGATIVE)
pub const BUTTON_NEGATIVE : i32 = -2;
/// public static final [BUTTON_NEUTRAL](https://developer.android.com/reference/android/content/DialogInterface.html#BUTTON_NEUTRAL)
pub const BUTTON_NEUTRAL : i32 = -3;
/// public static final [BUTTON_POSITIVE](https://developer.android.com/reference/android/content/DialogInterface.html#BUTTON_POSITIVE)
pub const BUTTON_POSITIVE : i32 = -1;
}
}