// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-view-textclassifier-TextClassifier"))]
__jni_bindgen! {
/// public interface [TextClassifier](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html)
///
/// Required feature: "android-view-textclassifier-TextClassifier"
public interface TextClassifier ("android/view/textclassifier/TextClassifier") extends crate::java::lang::Object {
/// [suggestSelection](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html#suggestSelection(java.lang.CharSequence,%20int,%20int,%20android.os.LocaleList))
///
/// Required features: "android-os-LocaleList", "android-view-textclassifier-TextSelection", "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "android-os-LocaleList", feature = "android-view-textclassifier-TextSelection", feature = "java-lang-CharSequence")))]
pub fn suggestSelection<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>, arg1: i32, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::LocaleList>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::textclassifier::TextSelection>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/textclassifier/TextClassifier", java.flags == PUBLIC | ABSTRACT, .name == "suggestSelection", .descriptor == "(Ljava/lang/CharSequence;IILandroid/os/LocaleList;)Landroid/view/textclassifier/TextSelection;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/textclassifier/TextClassifier\0", "suggestSelection\0", "(Ljava/lang/CharSequence;IILandroid/os/LocaleList;)Landroid/view/textclassifier/TextSelection;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [classifyText](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html#classifyText(java.lang.CharSequence,%20int,%20int,%20android.os.LocaleList))
///
/// Required features: "android-os-LocaleList", "android-view-textclassifier-TextClassification", "java-lang-CharSequence"
#[cfg(any(feature = "all", all(feature = "android-os-LocaleList", feature = "android-view-textclassifier-TextClassification", feature = "java-lang-CharSequence")))]
pub fn classifyText<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::CharSequence>>, arg1: i32, arg2: i32, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::LocaleList>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::textclassifier::TextClassification>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/view/textclassifier/TextClassifier", java.flags == PUBLIC | ABSTRACT, .name == "classifyText", .descriptor == "(Ljava/lang/CharSequence;IILandroid/os/LocaleList;)Landroid/view/textclassifier/TextClassification;"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2), __jni_bindgen::AsJValue::as_jvalue(&arg3.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/textclassifier/TextClassifier\0", "classifyText\0", "(Ljava/lang/CharSequence;IILandroid/os/LocaleList;)Landroid/view/textclassifier/TextClassification;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// **get** public static final [NO_OP](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html#NO_OP)
///
/// Required feature: "android-view-textclassifier-TextClassifier"
#[cfg(any(feature = "all", feature = "android-view-textclassifier-TextClassifier"))]
pub fn NO_OP<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::view::textclassifier::TextClassifier>> {
unsafe {
let (__jni_class, __jni_field) = env.require_class_static_field("android/view/textclassifier/TextClassifier\0", "NO_OP\0", "Landroid/view/textclassifier/TextClassifier;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
/// public static final [TYPE_ADDRESS](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html#TYPE_ADDRESS)
pub const TYPE_ADDRESS : &'static str = "address";
/// public static final [TYPE_EMAIL](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html#TYPE_EMAIL)
pub const TYPE_EMAIL : &'static str = "email";
/// public static final [TYPE_OTHER](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html#TYPE_OTHER)
pub const TYPE_OTHER : &'static str = "other";
/// public static final [TYPE_PHONE](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html#TYPE_PHONE)
pub const TYPE_PHONE : &'static str = "phone";
/// public static final [TYPE_URL](https://developer.android.com/reference/android/view/textclassifier/TextClassifier.html#TYPE_URL)
pub const TYPE_URL : &'static str = "url";
}
}