#[cfg(any(feature = "all", feature = "android-content-pm-LauncherApps_ShortcutQuery"))]
__jni_bindgen! {
public class LauncherApps_ShortcutQuery ("android/content/pm/LauncherApps$ShortcutQuery") extends crate::java::lang::Object {
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>> {
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())
}
}
#[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>> {
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())
}
}
#[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>> {
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())
}
}
#[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>> {
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())
}
}
#[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>> {
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())
}
}
#[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>> {
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())
}
}
pub const FLAG_GET_KEY_FIELDS_ONLY : i32 = 4;
pub const FLAG_MATCH_DYNAMIC : i32 = 1;
pub const FLAG_MATCH_MANIFEST : i32 = 8;
pub const FLAG_MATCH_PINNED : i32 = 2;
pub const FLAG_MATCH_PINNED_BY_ANY_LAUNCHER : i32 = 1024;
}
}