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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-nfc-cardemulation-CardEmulation"))]
__jni_bindgen! {
/// public final class [CardEmulation](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html)
///
/// Required feature: "android-nfc-cardemulation-CardEmulation"
public final class CardEmulation ("android/nfc/cardemulation/CardEmulation") extends crate::java::lang::Object {
/// [getInstance](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#getInstance(android.nfc.NfcAdapter))
///
/// Required features: "android-nfc-NfcAdapter", "android-nfc-cardemulation-CardEmulation"
#[cfg(any(feature = "all", all(feature = "android-nfc-NfcAdapter", feature = "android-nfc-cardemulation-CardEmulation")))]
pub fn getInstance<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::nfc::NfcAdapter>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::nfc::cardemulation::CardEmulation>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/nfc/cardemulation/CardEmulation", java.flags == PUBLIC | STATIC | SYNCRONIZED, .name == "getInstance", .descriptor == "(Landroid/nfc/NfcAdapter;)Landroid/nfc/cardemulation/CardEmulation;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/nfc/cardemulation/CardEmulation\0", "getInstance\0", "(Landroid/nfc/NfcAdapter;)Landroid/nfc/cardemulation/CardEmulation;\0");
__jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [isDefaultServiceForCategory](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#isDefaultServiceForCategory(android.content.ComponentName,%20java.lang.String))
///
/// Required features: "android-content-ComponentName", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-content-ComponentName", feature = "java-lang-String")))]
pub fn isDefaultServiceForCategory<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/nfc/cardemulation/CardEmulation", java.flags == PUBLIC, .name == "isDefaultServiceForCategory", .descriptor == "(Landroid/content/ComponentName;Ljava/lang/String;)Z"
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/nfc/cardemulation/CardEmulation\0", "isDefaultServiceForCategory\0", "(Landroid/content/ComponentName;Ljava/lang/String;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [isDefaultServiceForAid](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#isDefaultServiceForAid(android.content.ComponentName,%20java.lang.String))
///
/// Required features: "android-content-ComponentName", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-content-ComponentName", feature = "java-lang-String")))]
pub fn isDefaultServiceForAid<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/nfc/cardemulation/CardEmulation", java.flags == PUBLIC, .name == "isDefaultServiceForAid", .descriptor == "(Landroid/content/ComponentName;Ljava/lang/String;)Z"
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/nfc/cardemulation/CardEmulation\0", "isDefaultServiceForAid\0", "(Landroid/content/ComponentName;Ljava/lang/String;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getSelectionModeForCategory](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#getSelectionModeForCategory(java.lang.String))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getSelectionModeForCategory<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/nfc/cardemulation/CardEmulation", java.flags == PUBLIC, .name == "getSelectionModeForCategory", .descriptor == "(Ljava/lang/String;)I"
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/nfc/cardemulation/CardEmulation\0", "getSelectionModeForCategory\0", "(Ljava/lang/String;)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [ACTION_CHANGE_DEFAULT](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#ACTION_CHANGE_DEFAULT)
pub const ACTION_CHANGE_DEFAULT : &'static str = "android.nfc.cardemulation.action.ACTION_CHANGE_DEFAULT";
/// public static final [EXTRA_CATEGORY](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#EXTRA_CATEGORY)
pub const EXTRA_CATEGORY : &'static str = "category";
/// public static final [EXTRA_SERVICE_COMPONENT](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#EXTRA_SERVICE_COMPONENT)
pub const EXTRA_SERVICE_COMPONENT : &'static str = "component";
/// public static final [CATEGORY_PAYMENT](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#CATEGORY_PAYMENT)
pub const CATEGORY_PAYMENT : &'static str = "payment";
/// public static final [CATEGORY_OTHER](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#CATEGORY_OTHER)
pub const CATEGORY_OTHER : &'static str = "other";
/// public static final [SELECTION_MODE_PREFER_DEFAULT](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#SELECTION_MODE_PREFER_DEFAULT)
pub const SELECTION_MODE_PREFER_DEFAULT : i32 = 0;
/// public static final [SELECTION_MODE_ALWAYS_ASK](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#SELECTION_MODE_ALWAYS_ASK)
pub const SELECTION_MODE_ALWAYS_ASK : i32 = 1;
/// public static final [SELECTION_MODE_ASK_IF_CONFLICT](https://developer.android.com/reference/android/nfc/cardemulation/CardEmulation.html#SELECTION_MODE_ASK_IF_CONFLICT)
pub const SELECTION_MODE_ASK_IF_CONFLICT : i32 = 2;
}
}