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-nfc-cardemulation-OffHostApduService"))]
__jni_bindgen! {
    /// public class [OffHostApduService](https://developer.android.com/reference/android/nfc/cardemulation/OffHostApduService.html)
    ///
    /// Required feature: "android-nfc-cardemulation-OffHostApduService"
    public class OffHostApduService ("android/nfc/cardemulation/OffHostApduService") extends crate::android::app::Service {

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

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

        /// public static final [SERVICE_INTERFACE](https://developer.android.com/reference/android/nfc/cardemulation/OffHostApduService.html#SERVICE_INTERFACE)
        pub const SERVICE_INTERFACE : &'static str = "android.nfc.cardemulation.action.OFF_HOST_APDU_SERVICE";

        /// public static final [SERVICE_META_DATA](https://developer.android.com/reference/android/nfc/cardemulation/OffHostApduService.html#SERVICE_META_DATA)
        pub const SERVICE_META_DATA : &'static str = "android.nfc.cardemulation.off_host_apdu_service";
    }
}