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

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

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

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

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

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

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

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