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

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

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

        /// [onStartFailure](https://developer.android.com/reference/android/bluetooth/le/AdvertiseCallback.html#onStartFailure(int))
        pub fn onStartFailure<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/bluetooth/le/AdvertiseCallback", java.flags == PUBLIC, .name == "onStartFailure", .descriptor == "(I)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0)];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/bluetooth/le/AdvertiseCallback\0", "onStartFailure\0", "(I)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/AdvertiseCallback.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/AdvertiseCallback.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/AdvertiseCallback.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/AdvertiseCallback.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/AdvertiseCallback.html#ADVERTISE_FAILED_TOO_MANY_ADVERTISERS)
        pub const ADVERTISE_FAILED_TOO_MANY_ADVERTISERS : i32 = 2;
    }
}