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-service-voice-VoiceInteractionSession_ConfirmationRequest"))]
__jni_bindgen! {
    /// public final class [VoiceInteractionSession.ConfirmationRequest](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.ConfirmationRequest.html)
    ///
    /// Required feature: "android-service-voice-VoiceInteractionSession_ConfirmationRequest"
    public final class VoiceInteractionSession_ConfirmationRequest ("android/service/voice/VoiceInteractionSession$ConfirmationRequest") extends crate::android::service::voice::VoiceInteractionSession_Request {

        /// [getVoicePrompt](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.ConfirmationRequest.html#getVoicePrompt())
        ///
        /// Required features: "android-app-VoiceInteractor_Prompt"
        #[cfg(any(feature = "all", all(feature = "android-app-VoiceInteractor_Prompt")))]
        pub fn getVoicePrompt<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::VoiceInteractor_Prompt>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/service/voice/VoiceInteractionSession$ConfirmationRequest", java.flags == PUBLIC, .name == "getVoicePrompt", .descriptor == "()Landroid/app/VoiceInteractor$Prompt;"
            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/service/voice/VoiceInteractionSession$ConfirmationRequest\0", "getVoicePrompt\0", "()Landroid/app/VoiceInteractor$Prompt;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getPrompt](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.ConfirmationRequest.html#getPrompt())
        ///
        /// Required features: "java-lang-CharSequence"
        #[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
        #[deprecated] pub fn getPrompt<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/service/voice/VoiceInteractionSession$ConfirmationRequest", java.flags == PUBLIC, .name == "getPrompt", .descriptor == "()Ljava/lang/CharSequence;"
            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/service/voice/VoiceInteractionSession$ConfirmationRequest\0", "getPrompt\0", "()Ljava/lang/CharSequence;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [sendConfirmationResult](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.ConfirmationRequest.html#sendConfirmationResult(boolean,%20android.os.Bundle))
        ///
        /// Required features: "android-os-Bundle"
        #[cfg(any(feature = "all", all(feature = "android-os-Bundle")))]
        pub fn sendConfirmationResult<'env>(&'env self, arg0: bool, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Bundle>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/service/voice/VoiceInteractionSession$ConfirmationRequest", java.flags == PUBLIC, .name == "sendConfirmationResult", .descriptor == "(ZLandroid/os/Bundle;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/service/voice/VoiceInteractionSession$ConfirmationRequest\0", "sendConfirmationResult\0", "(ZLandroid/os/Bundle;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}