// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-content-pm-LabeledIntent"))]
__jni_bindgen! {
/// public class [LabeledIntent](https://developer.android.com/reference/android/content/pm/LabeledIntent.html)
///
/// Required feature: "android-content-pm-LabeledIntent"
public class LabeledIntent ("android/content/pm/LabeledIntent") extends crate::android::content::Intent {
/// [LabeledIntent](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#LabeledIntent(android.content.Intent,%20java.lang.String,%20int,%20int))
///
/// Required features: "android-content-Intent", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "java-lang-String")))]
pub fn new_Intent_String_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: i32, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::pm::LabeledIntent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Intent;Ljava/lang/String;II)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/LabeledIntent\0", "<init>\0", "(Landroid/content/Intent;Ljava/lang/String;II)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [LabeledIntent](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#LabeledIntent(android.content.Intent,%20java.lang.String,%20java.lang.CharSequence,%20int))
///
/// Required features: "android-content-Intent", "java-lang-CharSequence", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "java-lang-CharSequence", feature = "java-lang-String")))]
pub fn new_Intent_String_CharSequence_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>, arg3: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::pm::LabeledIntent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/CharSequence;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2.into()), __jni_bindgen::AsJValue::as_jvalue(&arg3)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/LabeledIntent\0", "<init>\0", "(Landroid/content/Intent;Ljava/lang/String;Ljava/lang/CharSequence;I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [LabeledIntent](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#LabeledIntent(java.lang.String,%20int,%20int))
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn new_String_int_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::pm::LabeledIntent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;II)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/LabeledIntent\0", "<init>\0", "(Ljava/lang/String;II)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [LabeledIntent](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#LabeledIntent(java.lang.String,%20java.lang.CharSequence,%20int))
///
/// Required features: "java-lang-CharSequence", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence", feature = "java-lang-String")))]
pub fn new_String_CharSequence_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::pm::LabeledIntent>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;Ljava/lang/CharSequence;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into()), __jni_bindgen::AsJValue::as_jvalue(&arg2)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/LabeledIntent\0", "<init>\0", "(Ljava/lang/String;Ljava/lang/CharSequence;I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getSourcePackage](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#getSourcePackage())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getSourcePackage<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "getSourcePackage", .descriptor == "()Ljava/lang/String;"
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/content/pm/LabeledIntent\0", "getSourcePackage\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getLabelResource](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#getLabelResource())
pub fn getLabelResource<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "getLabelResource", .descriptor == "()I"
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/content/pm/LabeledIntent\0", "getLabelResource\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getNonLocalizedLabel](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#getNonLocalizedLabel())
///
/// Required features: "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
pub fn getNonLocalizedLabel<'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/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "getNonLocalizedLabel", .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/content/pm/LabeledIntent\0", "getNonLocalizedLabel\0", "()Ljava/lang/CharSequence;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getIconResource](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#getIconResource())
pub fn getIconResource<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "getIconResource", .descriptor == "()I"
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/content/pm/LabeledIntent\0", "getIconResource\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [loadLabel](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#loadLabel(android.content.pm.PackageManager))
///
/// Required features: "android-content-pm-PackageManager", "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "android-content-pm-PackageManager", feature = "java-lang-CharSequence")))]
pub fn loadLabel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::pm::PackageManager>>) -> __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/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "loadLabel", .descriptor == "(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;"
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/LabeledIntent\0", "loadLabel\0", "(Landroid/content/pm/PackageManager;)Ljava/lang/CharSequence;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [loadIcon](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#loadIcon(android.content.pm.PackageManager))
///
/// Required features: "android-content-pm-PackageManager", "android-graphics-drawable-Drawable"
#[cfg(any(feature = "all", all(feature = "android-content-pm-PackageManager", feature = "android-graphics-drawable-Drawable")))]
pub fn loadIcon<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::pm::PackageManager>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::graphics::drawable::Drawable>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "loadIcon", .descriptor == "(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;"
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/LabeledIntent\0", "loadIcon\0", "(Landroid/content/pm/PackageManager;)Landroid/graphics/drawable/Drawable;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [writeToParcel](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#writeToParcel(android.os.Parcel,%20int))
///
/// Required features: "android-os-Parcel"
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn writeToParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "writeToParcel", .descriptor == "(Landroid/os/Parcel;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/pm/LabeledIntent\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [readFromParcel](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#readFromParcel(android.os.Parcel))
///
/// Required features: "android-os-Parcel"
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn readFromParcel<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::Parcel>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/pm/LabeledIntent", java.flags == PUBLIC, .name == "readFromParcel", .descriptor == "(Landroid/os/Parcel;)V"
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/LabeledIntent\0", "readFromParcel\0", "(Landroid/os/Parcel;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public static final [CREATOR](https://developer.android.com/reference/android/content/pm/LabeledIntent.html#CREATOR)
///
/// Required feature: "android-os-Parcelable_Creator"
#[cfg(any(feature = "all", feature = "android-os-Parcelable_Creator"))]
pub fn CREATOR<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Parcelable_Creator>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/content/pm/LabeledIntent\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}