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-content-pm-LauncherApps_ShortcutQuery"))]
__jni_bindgen! {
    /// public class [LauncherApps.ShortcutQuery](https://developer.android.com/reference/android/content/pm/LauncherApps.ShortcutQuery.html)
    ///
    /// Required feature: "android-content-pm-LauncherApps_ShortcutQuery"
    public class LauncherApps_ShortcutQuery ("android/content/pm/LauncherApps$ShortcutQuery") extends crate::java::lang::Object {

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

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

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

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

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

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

        /// public static final [FLAG_GET_KEY_FIELDS_ONLY](https://developer.android.com/reference/android/content/pm/LauncherApps.ShortcutQuery.html#FLAG_GET_KEY_FIELDS_ONLY)
        pub const FLAG_GET_KEY_FIELDS_ONLY : i32 = 4;

        /// public static final [FLAG_MATCH_DYNAMIC](https://developer.android.com/reference/android/content/pm/LauncherApps.ShortcutQuery.html#FLAG_MATCH_DYNAMIC)
        pub const FLAG_MATCH_DYNAMIC : i32 = 1;

        /// public static final [FLAG_MATCH_MANIFEST](https://developer.android.com/reference/android/content/pm/LauncherApps.ShortcutQuery.html#FLAG_MATCH_MANIFEST)
        pub const FLAG_MATCH_MANIFEST : i32 = 8;

        /// public static final [FLAG_MATCH_PINNED](https://developer.android.com/reference/android/content/pm/LauncherApps.ShortcutQuery.html#FLAG_MATCH_PINNED)
        pub const FLAG_MATCH_PINNED : i32 = 2;

        /// public static final [FLAG_MATCH_PINNED_BY_ANY_LAUNCHER](https://developer.android.com/reference/android/content/pm/LauncherApps.ShortcutQuery.html#FLAG_MATCH_PINNED_BY_ANY_LAUNCHER)
        pub const FLAG_MATCH_PINNED_BY_ANY_LAUNCHER : i32 = 1024;
    }
}