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-media-tv-TvInputInfo_Builder"))]
__jni_bindgen! {
    /// public final class [TvInputInfo.Builder](https://developer.android.com/reference/android/media/tv/TvInputInfo.Builder.html)
    ///
    /// Required feature: "android-media-tv-TvInputInfo_Builder"
    public final class TvInputInfo_Builder ("android/media/tv/TvInputInfo$Builder") extends crate::java::lang::Object {

        /// [Builder](https://developer.android.com/reference/android/media/tv/TvInputInfo.Builder.html#Builder(android.content.Context,%20android.content.ComponentName))
        ///
        /// Required features: "android-content-ComponentName", "android-content-Context"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentName", feature = "android-content-Context")))]
        pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::media::tv::TvInputInfo_Builder>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/tv/TvInputInfo$Builder", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;Landroid/content/ComponentName;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/media/tv/TvInputInfo$Builder\0", "<init>\0", "(Landroid/content/Context;Landroid/content/ComponentName;)V\0");
                __jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setTunerCount](https://developer.android.com/reference/android/media/tv/TvInputInfo.Builder.html#setTunerCount(int))
        ///
        /// Required features: "android-media-tv-TvInputInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-media-tv-TvInputInfo_Builder")))]
        pub fn setTunerCount<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::tv::TvInputInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/tv/TvInputInfo$Builder", java.flags == PUBLIC, .name == "setTunerCount", .descriptor == "(I)Landroid/media/tv/TvInputInfo$Builder;"
            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/media/tv/TvInputInfo$Builder\0", "setTunerCount\0", "(I)Landroid/media/tv/TvInputInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setCanRecord](https://developer.android.com/reference/android/media/tv/TvInputInfo.Builder.html#setCanRecord(boolean))
        ///
        /// Required features: "android-media-tv-TvInputInfo_Builder"
        #[cfg(any(feature = "all", all(feature = "android-media-tv-TvInputInfo_Builder")))]
        pub fn setCanRecord<'env>(&'env self, arg0: bool) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::media::tv::TvInputInfo_Builder>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/media/tv/TvInputInfo$Builder", java.flags == PUBLIC, .name == "setCanRecord", .descriptor == "(Z)Landroid/media/tv/TvInputInfo$Builder;"
            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/media/tv/TvInputInfo$Builder\0", "setCanRecord\0", "(Z)Landroid/media/tv/TvInputInfo$Builder;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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