// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-content-ClipData_Item"))]
__jni_bindgen! {
/// public class [ClipData.Item](https://developer.android.com/reference/android/content/ClipData.Item.html)
///
/// Required feature: "android-content-ClipData_Item"
public class ClipData_Item ("android/content/ClipData$Item") extends crate::java::lang::Object {
/// [Item](https://developer.android.com/reference/android/content/ClipData.Item.html#Item(java.lang.CharSequence))
///
/// Required features: "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
pub fn new_CharSequence<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::ClipData_Item>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/ClipData$Item", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/CharSequence;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/ClipData$Item\0", "<init>\0", "(Ljava/lang/CharSequence;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [Item](https://developer.android.com/reference/android/content/ClipData.Item.html#Item(android.content.Intent))
///
/// Required features: "android-content-Intent"
#[cfg(any(feature = "all", all(feature = "android-content-Intent")))]
pub fn new_Intent<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::ClipData_Item>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/ClipData$Item", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Intent;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/ClipData$Item\0", "<init>\0", "(Landroid/content/Intent;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [Item](https://developer.android.com/reference/android/content/ClipData.Item.html#Item(android.net.Uri))
///
/// Required features: "android-net-Uri"
#[cfg(any(feature = "all", all(feature = "android-net-Uri")))]
pub fn new_Uri<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::ClipData_Item>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/ClipData$Item", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/net/Uri;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/ClipData$Item\0", "<init>\0", "(Landroid/net/Uri;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [Item](https://developer.android.com/reference/android/content/ClipData.Item.html#Item(java.lang.CharSequence,%20android.content.Intent,%20android.net.Uri))
///
/// Required features: "android-content-Intent", "android-net-Uri", "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "android-content-Intent", feature = "android-net-Uri", feature = "java-lang-CharSequence")))]
pub fn new_CharSequence_Intent_Uri<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Intent>>, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::net::Uri>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::content::ClipData_Item>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/ClipData$Item", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/CharSequence;Landroid/content/Intent;Landroid/net/Uri;)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())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/content/ClipData$Item\0", "<init>\0", "(Ljava/lang/CharSequence;Landroid/content/Intent;Landroid/net/Uri;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getText](https://developer.android.com/reference/android/content/ClipData.Item.html#getText())
///
/// Required features: "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "java-lang-CharSequence")))]
pub fn getText<'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/ClipData$Item", java.flags == PUBLIC, .name == "getText", .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/ClipData$Item\0", "getText\0", "()Ljava/lang/CharSequence;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getIntent](https://developer.android.com/reference/android/content/ClipData.Item.html#getIntent())
///
/// Required features: "android-content-Intent"
#[cfg(any(feature = "all", all(feature = "android-content-Intent")))]
pub fn getIntent<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::Intent>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/ClipData$Item", java.flags == PUBLIC, .name == "getIntent", .descriptor == "()Landroid/content/Intent;"
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/ClipData$Item\0", "getIntent\0", "()Landroid/content/Intent;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getUri](https://developer.android.com/reference/android/content/ClipData.Item.html#getUri())
///
/// Required features: "android-net-Uri"
#[cfg(any(feature = "all", all(feature = "android-net-Uri")))]
pub fn getUri<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::net::Uri>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/content/ClipData$Item", java.flags == PUBLIC, .name == "getUri", .descriptor == "()Landroid/net/Uri;"
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/ClipData$Item\0", "getUri\0", "()Landroid/net/Uri;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [coerceToText](https://developer.android.com/reference/android/content/ClipData.Item.html#coerceToText(android.content.Context))
///
/// Required features: "android-content-Context", "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "android-content-Context", feature = "java-lang-CharSequence")))]
pub fn coerceToText<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>) -> __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/ClipData$Item", java.flags == PUBLIC, .name == "coerceToText", .descriptor == "(Landroid/content/Context;)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/ClipData$Item\0", "coerceToText\0", "(Landroid/content/Context;)Ljava/lang/CharSequence;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}