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

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

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

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

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

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

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

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

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

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

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

        /// public static final [EVENT_CANCEL_TRANSACTION](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_CANCEL_TRANSACTION)
        pub const EVENT_CANCEL_TRANSACTION : i32 = 16385;

        /// public static final [EVENT_CAPTURE_COMPLETE](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_CAPTURE_COMPLETE)
        pub const EVENT_CAPTURE_COMPLETE : i32 = 16397;

        /// public static final [EVENT_DEVICE_INFO_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_DEVICE_INFO_CHANGED)
        pub const EVENT_DEVICE_INFO_CHANGED : i32 = 16392;

        /// public static final [EVENT_DEVICE_PROP_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_DEVICE_PROP_CHANGED)
        pub const EVENT_DEVICE_PROP_CHANGED : i32 = 16390;

        /// public static final [EVENT_DEVICE_RESET](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_DEVICE_RESET)
        pub const EVENT_DEVICE_RESET : i32 = 16395;

        /// public static final [EVENT_OBJECT_ADDED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_ADDED)
        pub const EVENT_OBJECT_ADDED : i32 = 16386;

        /// public static final [EVENT_OBJECT_INFO_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_INFO_CHANGED)
        pub const EVENT_OBJECT_INFO_CHANGED : i32 = 16391;

        /// public static final [EVENT_OBJECT_PROP_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_PROP_CHANGED)
        pub const EVENT_OBJECT_PROP_CHANGED : i32 = 51201;

        /// public static final [EVENT_OBJECT_PROP_DESC_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_PROP_DESC_CHANGED)
        pub const EVENT_OBJECT_PROP_DESC_CHANGED : i32 = 51202;

        /// public static final [EVENT_OBJECT_REFERENCES_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_REFERENCES_CHANGED)
        pub const EVENT_OBJECT_REFERENCES_CHANGED : i32 = 51203;

        /// public static final [EVENT_OBJECT_REMOVED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_OBJECT_REMOVED)
        pub const EVENT_OBJECT_REMOVED : i32 = 16387;

        /// public static final [EVENT_REQUEST_OBJECT_TRANSFER](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_REQUEST_OBJECT_TRANSFER)
        pub const EVENT_REQUEST_OBJECT_TRANSFER : i32 = 16393;

        /// public static final [EVENT_STORAGE_INFO_CHANGED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_STORAGE_INFO_CHANGED)
        pub const EVENT_STORAGE_INFO_CHANGED : i32 = 16396;

        /// public static final [EVENT_STORE_ADDED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_STORE_ADDED)
        pub const EVENT_STORE_ADDED : i32 = 16388;

        /// public static final [EVENT_STORE_FULL](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_STORE_FULL)
        pub const EVENT_STORE_FULL : i32 = 16394;

        /// public static final [EVENT_STORE_REMOVED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_STORE_REMOVED)
        pub const EVENT_STORE_REMOVED : i32 = 16389;

        /// public static final [EVENT_UNDEFINED](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_UNDEFINED)
        pub const EVENT_UNDEFINED : i32 = 16384;

        /// public static final [EVENT_UNREPORTED_STATUS](https://developer.android.com/reference/android/mtp/MtpEvent.html#EVENT_UNREPORTED_STATUS)
        pub const EVENT_UNREPORTED_STATUS : i32 = 16398;
    }
}