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-location-GpsStatus"))]
__jni_bindgen! {
    /// public final class [GpsStatus](https://developer.android.com/reference/android/location/GpsStatus.html)
    ///
    /// Required feature: "android-location-GpsStatus"
    public final class GpsStatus ("android/location/GpsStatus") extends crate::java::lang::Object {

        /// [getTimeToFirstFix](https://developer.android.com/reference/android/location/GpsStatus.html#getTimeToFirstFix())
        pub fn getTimeToFirstFix<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/location/GpsStatus", java.flags == PUBLIC, .name == "getTimeToFirstFix", .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/location/GpsStatus\0", "getTimeToFirstFix\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getSatellites](https://developer.android.com/reference/android/location/GpsStatus.html#getSatellites())
        ///
        /// Required features: "java-lang-Iterable"
        #[cfg(any(feature = "all", all(feature = "java-lang-Iterable")))]
        pub fn getSatellites<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::Iterable>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/location/GpsStatus", java.flags == PUBLIC, .name == "getSatellites", .descriptor == "()Ljava/lang/Iterable;"
            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/location/GpsStatus\0", "getSatellites\0", "()Ljava/lang/Iterable;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getMaxSatellites](https://developer.android.com/reference/android/location/GpsStatus.html#getMaxSatellites())
        pub fn getMaxSatellites<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/location/GpsStatus", java.flags == PUBLIC, .name == "getMaxSatellites", .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/location/GpsStatus\0", "getMaxSatellites\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [GPS_EVENT_STARTED](https://developer.android.com/reference/android/location/GpsStatus.html#GPS_EVENT_STARTED)
        pub const GPS_EVENT_STARTED : i32 = 1;

        /// public static final [GPS_EVENT_STOPPED](https://developer.android.com/reference/android/location/GpsStatus.html#GPS_EVENT_STOPPED)
        pub const GPS_EVENT_STOPPED : i32 = 2;

        /// public static final [GPS_EVENT_FIRST_FIX](https://developer.android.com/reference/android/location/GpsStatus.html#GPS_EVENT_FIRST_FIX)
        pub const GPS_EVENT_FIRST_FIX : i32 = 3;

        /// public static final [GPS_EVENT_SATELLITE_STATUS](https://developer.android.com/reference/android/location/GpsStatus.html#GPS_EVENT_SATELLITE_STATUS)
        pub const GPS_EVENT_SATELLITE_STATUS : i32 = 4;
    }
}