jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-hardware-location-GeofenceHardwareCallback"))]
__jni_bindgen! {
    /// public class [GeofenceHardwareCallback](https://developer.android.com/reference/android/hardware/location/GeofenceHardwareCallback.html)
    ///
    /// Required feature: "android-hardware-location-GeofenceHardwareCallback"
    public class GeofenceHardwareCallback ("android/hardware/location/GeofenceHardwareCallback") extends crate::java::lang::Object {

        /// [GeofenceHardwareCallback](https://developer.android.com/reference/android/hardware/location/GeofenceHardwareCallback.html#GeofenceHardwareCallback())
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::hardware::location::GeofenceHardwareCallback>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/hardware/location/GeofenceHardwareCallback", java.flags == PUBLIC, .name == "<init>", .descriptor == "()V"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/hardware/location/GeofenceHardwareCallback\0", "<init>\0", "()V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onGeofenceTransition](https://developer.android.com/reference/android/hardware/location/GeofenceHardwareCallback.html#onGeofenceTransition(int,%20int,%20android.location.Location,%20long,%20int))
        ///
        /// Required features: "android-location-Location"
        #[cfg(any(feature = "all", all(feature = "android-location-Location")))]
        pub fn onGeofenceTransition<'env>(&'env self, arg0: i32, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::location::Location>>, arg3: i64, arg4: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/hardware/location/GeofenceHardwareCallback", java.flags == PUBLIC, .name == "onGeofenceTransition", .descriptor == "(IILandroid/location/Location;JI)V"
            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), __jni_bindgen::AsJValue::as_jvalue(&arg4)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/hardware/location/GeofenceHardwareCallback\0", "onGeofenceTransition\0", "(IILandroid/location/Location;JI)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onGeofenceAdd](https://developer.android.com/reference/android/hardware/location/GeofenceHardwareCallback.html#onGeofenceAdd(int,%20int))
        pub fn onGeofenceAdd<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/hardware/location/GeofenceHardwareCallback", java.flags == PUBLIC, .name == "onGeofenceAdd", .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/hardware/location/GeofenceHardwareCallback\0", "onGeofenceAdd\0", "(II)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onGeofenceRemove](https://developer.android.com/reference/android/hardware/location/GeofenceHardwareCallback.html#onGeofenceRemove(int,%20int))
        pub fn onGeofenceRemove<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/hardware/location/GeofenceHardwareCallback", java.flags == PUBLIC, .name == "onGeofenceRemove", .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/hardware/location/GeofenceHardwareCallback\0", "onGeofenceRemove\0", "(II)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onGeofencePause](https://developer.android.com/reference/android/hardware/location/GeofenceHardwareCallback.html#onGeofencePause(int,%20int))
        pub fn onGeofencePause<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/hardware/location/GeofenceHardwareCallback", java.flags == PUBLIC, .name == "onGeofencePause", .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/hardware/location/GeofenceHardwareCallback\0", "onGeofencePause\0", "(II)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onGeofenceResume](https://developer.android.com/reference/android/hardware/location/GeofenceHardwareCallback.html#onGeofenceResume(int,%20int))
        pub fn onGeofenceResume<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/hardware/location/GeofenceHardwareCallback", java.flags == PUBLIC, .name == "onGeofenceResume", .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/hardware/location/GeofenceHardwareCallback\0", "onGeofenceResume\0", "(II)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}