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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-view-accessibility-CaptioningManager_CaptionStyle"))]
__jni_bindgen! {
/// public final class [CaptioningManager.CaptionStyle](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle.html)
///
/// Required feature: "android-view-accessibility-CaptioningManager_CaptionStyle"
public final class CaptioningManager_CaptionStyle ("android/view/accessibility/CaptioningManager$CaptionStyle") extends crate::java::lang::Object {
/// [getTypeface](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle.html#getTypeface())
///
/// Required features: "android-graphics-Typeface"
#[cfg(any(feature = "all", all(feature = "android-graphics-Typeface")))]
pub fn getTypeface<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::Typeface>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/accessibility/CaptioningManager$CaptionStyle", java.flags == PUBLIC, .name == "getTypeface", .descriptor == "()Landroid/graphics/Typeface;"
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/view/accessibility/CaptioningManager$CaptionStyle\0", "getTypeface\0", "()Landroid/graphics/Typeface;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [EDGE_TYPE_NONE](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle.html#EDGE_TYPE_NONE)
pub const EDGE_TYPE_NONE : i32 = 0;
/// public static final [EDGE_TYPE_OUTLINE](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle.html#EDGE_TYPE_OUTLINE)
pub const EDGE_TYPE_OUTLINE : i32 = 1;
/// public static final [EDGE_TYPE_DROP_SHADOW](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle.html#EDGE_TYPE_DROP_SHADOW)
pub const EDGE_TYPE_DROP_SHADOW : i32 = 2;
/// **get** public final [foregroundColor](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle.html#foregroundColor)
pub fn foregroundColor<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/accessibility/CaptioningManager$CaptionStyle\0", "foregroundColor\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [backgroundColor](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle.html#backgroundColor)
pub fn backgroundColor<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/accessibility/CaptioningManager$CaptionStyle\0", "backgroundColor\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [edgeType](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle.html#edgeType)
pub fn edgeType<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/accessibility/CaptioningManager$CaptionStyle\0", "edgeType\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
/// **get** public final [edgeColor](https://developer.android.com/reference/android/view/accessibility/CaptioningManager.CaptionStyle.html#edgeColor)
pub fn edgeColor<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/accessibility/CaptioningManager$CaptionStyle\0", "edgeColor\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
}
}