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

        /// [ExifInterface](https://developer.android.com/reference/android/media/ExifInterface.html#ExifInterface(java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::media::ExifInterface>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/ExifInterface\0", "<init>\0", "(Ljava/lang/String;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [getAttributeInt](https://developer.android.com/reference/android/media/ExifInterface.html#getAttributeInt(java.lang.String,%20int))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getAttributeInt<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getAttributeInt", .descriptor == "(Ljava/lang/String;I)I"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __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/media/ExifInterface\0", "getAttributeInt\0", "(Ljava/lang/String;I)I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getAttributeDouble](https://developer.android.com/reference/android/media/ExifInterface.html#getAttributeDouble(java.lang.String,%20double))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn getAttributeDouble<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: f64) -> __jni_bindgen::std::result::Result<f64, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getAttributeDouble", .descriptor == "(Ljava/lang/String;D)D"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __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/media/ExifInterface\0", "getAttributeDouble\0", "(Ljava/lang/String;D)D\0");
                __jni_env.call_double_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setAttribute](https://developer.android.com/reference/android/media/ExifInterface.html#setAttribute(java.lang.String,%20java.lang.String))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn setAttribute<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "setAttribute", .descriptor == "(Ljava/lang/String;Ljava/lang/String;)V"
            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/media/ExifInterface\0", "setAttribute\0", "(Ljava/lang/String;Ljava/lang/String;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

        /// [getThumbnail](https://developer.android.com/reference/android/media/ExifInterface.html#getThumbnail())
        pub fn getThumbnail<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ByteArray>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getThumbnail", .descriptor == "()[B"
            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/media/ExifInterface\0", "getThumbnail\0", "()[B\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getLatLong](https://developer.android.com/reference/android/media/ExifInterface.html#getLatLong(float%5B%5D))
        pub fn getLatLong<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::FloatArray>>) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/ExifInterface", java.flags == PUBLIC, .name == "getLatLong", .descriptor == "([F)Z"
            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/media/ExifInterface\0", "getLatLong\0", "([F)Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [TAG_ORIENTATION](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_ORIENTATION)
        pub const TAG_ORIENTATION : &'static str = "Orientation";

        /// public static final [TAG_DATETIME](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_DATETIME)
        pub const TAG_DATETIME : &'static str = "DateTime";

        /// public static final [TAG_MAKE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_MAKE)
        pub const TAG_MAKE : &'static str = "Make";

        /// public static final [TAG_MODEL](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_MODEL)
        pub const TAG_MODEL : &'static str = "Model";

        /// public static final [TAG_FLASH](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_FLASH)
        pub const TAG_FLASH : &'static str = "Flash";

        /// public static final [TAG_IMAGE_WIDTH](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_IMAGE_WIDTH)
        pub const TAG_IMAGE_WIDTH : &'static str = "ImageWidth";

        /// public static final [TAG_IMAGE_LENGTH](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_IMAGE_LENGTH)
        pub const TAG_IMAGE_LENGTH : &'static str = "ImageLength";

        /// public static final [TAG_GPS_LATITUDE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_LATITUDE)
        pub const TAG_GPS_LATITUDE : &'static str = "GPSLatitude";

        /// public static final [TAG_GPS_LONGITUDE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_LONGITUDE)
        pub const TAG_GPS_LONGITUDE : &'static str = "GPSLongitude";

        /// public static final [TAG_GPS_LATITUDE_REF](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_LATITUDE_REF)
        pub const TAG_GPS_LATITUDE_REF : &'static str = "GPSLatitudeRef";

        /// public static final [TAG_GPS_LONGITUDE_REF](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_LONGITUDE_REF)
        pub const TAG_GPS_LONGITUDE_REF : &'static str = "GPSLongitudeRef";

        /// public static final [TAG_GPS_TIMESTAMP](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_TIMESTAMP)
        pub const TAG_GPS_TIMESTAMP : &'static str = "GPSTimeStamp";

        /// public static final [TAG_GPS_DATESTAMP](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_DATESTAMP)
        pub const TAG_GPS_DATESTAMP : &'static str = "GPSDateStamp";

        /// public static final [TAG_WHITE_BALANCE](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_WHITE_BALANCE)
        pub const TAG_WHITE_BALANCE : &'static str = "WhiteBalance";

        /// public static final [TAG_FOCAL_LENGTH](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_FOCAL_LENGTH)
        pub const TAG_FOCAL_LENGTH : &'static str = "FocalLength";

        /// public static final [TAG_GPS_PROCESSING_METHOD](https://developer.android.com/reference/android/media/ExifInterface.html#TAG_GPS_PROCESSING_METHOD)
        pub const TAG_GPS_PROCESSING_METHOD : &'static str = "GPSProcessingMethod";

        /// public static final [ORIENTATION_UNDEFINED](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_UNDEFINED)
        pub const ORIENTATION_UNDEFINED : i32 = 0;

        /// public static final [ORIENTATION_NORMAL](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_NORMAL)
        pub const ORIENTATION_NORMAL : i32 = 1;

        /// public static final [ORIENTATION_FLIP_HORIZONTAL](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_FLIP_HORIZONTAL)
        pub const ORIENTATION_FLIP_HORIZONTAL : i32 = 2;

        /// public static final [ORIENTATION_ROTATE_180](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_ROTATE_180)
        pub const ORIENTATION_ROTATE_180 : i32 = 3;

        /// public static final [ORIENTATION_FLIP_VERTICAL](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_FLIP_VERTICAL)
        pub const ORIENTATION_FLIP_VERTICAL : i32 = 4;

        /// public static final [ORIENTATION_TRANSPOSE](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_TRANSPOSE)
        pub const ORIENTATION_TRANSPOSE : i32 = 5;

        /// public static final [ORIENTATION_ROTATE_90](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_ROTATE_90)
        pub const ORIENTATION_ROTATE_90 : i32 = 6;

        /// public static final [ORIENTATION_TRANSVERSE](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_TRANSVERSE)
        pub const ORIENTATION_TRANSVERSE : i32 = 7;

        /// public static final [ORIENTATION_ROTATE_270](https://developer.android.com/reference/android/media/ExifInterface.html#ORIENTATION_ROTATE_270)
        pub const ORIENTATION_ROTATE_270 : i32 = 8;

        /// public static final [WHITEBALANCE_AUTO](https://developer.android.com/reference/android/media/ExifInterface.html#WHITEBALANCE_AUTO)
        pub const WHITEBALANCE_AUTO : i32 = 0;

        /// public static final [WHITEBALANCE_MANUAL](https://developer.android.com/reference/android/media/ExifInterface.html#WHITEBALANCE_MANUAL)
        pub const WHITEBALANCE_MANUAL : i32 = 1;
    }
}