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

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

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

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

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

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

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

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

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

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

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

        /// public static final [ADVERTISE_FAILED_ALREADY_STARTED](https://developer.android.com/reference/android/bluetooth/le/AdvertisingSetCallback.html#ADVERTISE_FAILED_ALREADY_STARTED)
        pub const ADVERTISE_FAILED_ALREADY_STARTED : i32 = 3;

        /// public static final [ADVERTISE_FAILED_DATA_TOO_LARGE](https://developer.android.com/reference/android/bluetooth/le/AdvertisingSetCallback.html#ADVERTISE_FAILED_DATA_TOO_LARGE)
        pub const ADVERTISE_FAILED_DATA_TOO_LARGE : i32 = 1;

        /// public static final [ADVERTISE_FAILED_FEATURE_UNSUPPORTED](https://developer.android.com/reference/android/bluetooth/le/AdvertisingSetCallback.html#ADVERTISE_FAILED_FEATURE_UNSUPPORTED)
        pub const ADVERTISE_FAILED_FEATURE_UNSUPPORTED : i32 = 5;

        /// public static final [ADVERTISE_FAILED_INTERNAL_ERROR](https://developer.android.com/reference/android/bluetooth/le/AdvertisingSetCallback.html#ADVERTISE_FAILED_INTERNAL_ERROR)
        pub const ADVERTISE_FAILED_INTERNAL_ERROR : i32 = 4;

        /// public static final [ADVERTISE_FAILED_TOO_MANY_ADVERTISERS](https://developer.android.com/reference/android/bluetooth/le/AdvertisingSetCallback.html#ADVERTISE_FAILED_TOO_MANY_ADVERTISERS)
        pub const ADVERTISE_FAILED_TOO_MANY_ADVERTISERS : i32 = 2;

        /// public static final [ADVERTISE_SUCCESS](https://developer.android.com/reference/android/bluetooth/le/AdvertisingSetCallback.html#ADVERTISE_SUCCESS)
        pub const ADVERTISE_SUCCESS : i32 = 0;
    }
}