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

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

        /// [onGetChooserTargets](https://developer.android.com/reference/android/service/chooser/ChooserTargetService.html#onGetChooserTargets(android.content.ComponentName,%20android.content.IntentFilter))
        ///
        /// Required features: "android-content-ComponentName", "android-content-IntentFilter", "java-util-List"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentName", feature = "android-content-IntentFilter", feature = "java-util-List")))]
        pub fn onGetChooserTargets<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::IntentFilter>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::util::List>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/service/chooser/ChooserTargetService", java.flags == PUBLIC | ABSTRACT, .name == "onGetChooserTargets", .descriptor == "(Landroid/content/ComponentName;Landroid/content/IntentFilter;)Ljava/util/List;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __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/chooser/ChooserTargetService\0", "onGetChooserTargets\0", "(Landroid/content/ComponentName;Landroid/content/IntentFilter;)Ljava/util/List;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onBind](https://developer.android.com/reference/android/service/chooser/ChooserTargetService.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/service/chooser/ChooserTargetService", java.flags == PUBLIC, .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/service/chooser/ChooserTargetService\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 [BIND_PERMISSION](https://developer.android.com/reference/android/service/chooser/ChooserTargetService.html#BIND_PERMISSION)
        pub const BIND_PERMISSION : &'static str = "android.permission.BIND_CHOOSER_TARGET_SERVICE";

        /// public static final [META_DATA_NAME](https://developer.android.com/reference/android/service/chooser/ChooserTargetService.html#META_DATA_NAME)
        pub const META_DATA_NAME : &'static str = "android.service.chooser.chooser_target_service";

        /// public static final [SERVICE_INTERFACE](https://developer.android.com/reference/android/service/chooser/ChooserTargetService.html#SERVICE_INTERFACE)
        pub const SERVICE_INTERFACE : &'static str = "android.service.chooser.ChooserTargetService";
    }
}