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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-hardware-location-GeofenceHardware"))]
__jni_bindgen! {
/// public final class [GeofenceHardware](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html)
///
/// Required feature: "android-hardware-location-GeofenceHardware"
public final class GeofenceHardware ("android/hardware/location/GeofenceHardware") extends crate::java::lang::Object {
/// [getMonitoringTypes](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#getMonitoringTypes())
pub fn getMonitoringTypes<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::IntArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/location/GeofenceHardware", java.flags == PUBLIC, .name == "getMonitoringTypes", .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/hardware/location/GeofenceHardware\0", "getMonitoringTypes\0", "()[I\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getStatusOfMonitoringType](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#getStatusOfMonitoringType(int))
pub fn getStatusOfMonitoringType<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/location/GeofenceHardware", java.flags == PUBLIC, .name == "getStatusOfMonitoringType", .descriptor == "(I)I"
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/hardware/location/GeofenceHardware\0", "getStatusOfMonitoringType\0", "(I)I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [addGeofence](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#addGeofence(int,%20int,%20android.hardware.location.GeofenceHardwareRequest,%20android.hardware.location.GeofenceHardwareCallback))
///
/// Required features: "android-hardware-location-GeofenceHardwareCallback", "android-hardware-location-GeofenceHardwareRequest"
#[cfg(any(feature = "all", all(feature = "android-hardware-location-GeofenceHardwareCallback", feature = "android-hardware-location-GeofenceHardwareRequest")))]
pub fn addGeofence<'env>(&'env self, arg0: i32, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::location::GeofenceHardwareRequest>>, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::location::GeofenceHardwareCallback>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/location/GeofenceHardware", java.flags == PUBLIC, .name == "addGeofence", .descriptor == "(IILandroid/hardware/location/GeofenceHardwareRequest;Landroid/hardware/location/GeofenceHardwareCallback;)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/hardware/location/GeofenceHardware\0", "addGeofence\0", "(IILandroid/hardware/location/GeofenceHardwareRequest;Landroid/hardware/location/GeofenceHardwareCallback;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [removeGeofence](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#removeGeofence(int,%20int))
pub fn removeGeofence<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/location/GeofenceHardware", java.flags == PUBLIC, .name == "removeGeofence", .descriptor == "(II)Z"
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/hardware/location/GeofenceHardware\0", "removeGeofence\0", "(II)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [pauseGeofence](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#pauseGeofence(int,%20int))
pub fn pauseGeofence<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/location/GeofenceHardware", java.flags == PUBLIC, .name == "pauseGeofence", .descriptor == "(II)Z"
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/hardware/location/GeofenceHardware\0", "pauseGeofence\0", "(II)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [resumeGeofence](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#resumeGeofence(int,%20int,%20int))
pub fn resumeGeofence<'env>(&'env self, arg0: i32, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/location/GeofenceHardware", java.flags == PUBLIC, .name == "resumeGeofence", .descriptor == "(III)Z"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/hardware/location/GeofenceHardware\0", "resumeGeofence\0", "(III)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [registerForMonitorStateChangeCallback](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#registerForMonitorStateChangeCallback(int,%20android.hardware.location.GeofenceHardwareMonitorCallback))
///
/// Required features: "android-hardware-location-GeofenceHardwareMonitorCallback"
#[cfg(any(feature = "all", all(feature = "android-hardware-location-GeofenceHardwareMonitorCallback")))]
pub fn registerForMonitorStateChangeCallback<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::location::GeofenceHardwareMonitorCallback>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/location/GeofenceHardware", java.flags == PUBLIC, .name == "registerForMonitorStateChangeCallback", .descriptor == "(ILandroid/hardware/location/GeofenceHardwareMonitorCallback;)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/hardware/location/GeofenceHardware\0", "registerForMonitorStateChangeCallback\0", "(ILandroid/hardware/location/GeofenceHardwareMonitorCallback;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [unregisterForMonitorStateChangeCallback](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#unregisterForMonitorStateChangeCallback(int,%20android.hardware.location.GeofenceHardwareMonitorCallback))
///
/// Required features: "android-hardware-location-GeofenceHardwareMonitorCallback"
#[cfg(any(feature = "all", all(feature = "android-hardware-location-GeofenceHardwareMonitorCallback")))]
pub fn unregisterForMonitorStateChangeCallback<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::hardware::location::GeofenceHardwareMonitorCallback>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/hardware/location/GeofenceHardware", java.flags == PUBLIC, .name == "unregisterForMonitorStateChangeCallback", .descriptor == "(ILandroid/hardware/location/GeofenceHardwareMonitorCallback;)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/hardware/location/GeofenceHardware\0", "unregisterForMonitorStateChangeCallback\0", "(ILandroid/hardware/location/GeofenceHardwareMonitorCallback;)Z\0");
__jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// public static final [MONITORING_TYPE_GPS_HARDWARE](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#MONITORING_TYPE_GPS_HARDWARE)
pub const MONITORING_TYPE_GPS_HARDWARE : i32 = 0;
/// public static final [MONITOR_CURRENTLY_AVAILABLE](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#MONITOR_CURRENTLY_AVAILABLE)
pub const MONITOR_CURRENTLY_AVAILABLE : i32 = 0;
/// public static final [MONITOR_CURRENTLY_UNAVAILABLE](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#MONITOR_CURRENTLY_UNAVAILABLE)
pub const MONITOR_CURRENTLY_UNAVAILABLE : i32 = 1;
/// public static final [MONITOR_UNSUPPORTED](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#MONITOR_UNSUPPORTED)
pub const MONITOR_UNSUPPORTED : i32 = 2;
/// public static final [GEOFENCE_ENTERED](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#GEOFENCE_ENTERED)
pub const GEOFENCE_ENTERED : i32 = 1;
/// public static final [GEOFENCE_EXITED](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#GEOFENCE_EXITED)
pub const GEOFENCE_EXITED : i32 = 2;
/// public static final [GEOFENCE_UNCERTAIN](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#GEOFENCE_UNCERTAIN)
pub const GEOFENCE_UNCERTAIN : i32 = 4;
/// public static final [GEOFENCE_SUCCESS](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#GEOFENCE_SUCCESS)
pub const GEOFENCE_SUCCESS : i32 = 0;
/// public static final [GEOFENCE_ERROR_TOO_MANY_GEOFENCES](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#GEOFENCE_ERROR_TOO_MANY_GEOFENCES)
pub const GEOFENCE_ERROR_TOO_MANY_GEOFENCES : i32 = 1;
/// public static final [GEOFENCE_ERROR_ID_EXISTS](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#GEOFENCE_ERROR_ID_EXISTS)
pub const GEOFENCE_ERROR_ID_EXISTS : i32 = 2;
/// public static final [GEOFENCE_ERROR_ID_UNKNOWN](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#GEOFENCE_ERROR_ID_UNKNOWN)
pub const GEOFENCE_ERROR_ID_UNKNOWN : i32 = 3;
/// public static final [GEOFENCE_ERROR_INVALID_TRANSITION](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#GEOFENCE_ERROR_INVALID_TRANSITION)
pub const GEOFENCE_ERROR_INVALID_TRANSITION : i32 = 4;
/// public static final [GEOFENCE_FAILURE](https://developer.android.com/reference/android/hardware/location/GeofenceHardware.html#GEOFENCE_FAILURE)
pub const GEOFENCE_FAILURE : i32 = 5;
}
}