// WARNING: This file was autogenerated by jni-bindgen. Any changes to this file may be lost!!!
#[cfg(any(feature = "all", feature = "android-text-style-TextAppearanceSpan"))]
__jni_bindgen! {
/// public class [TextAppearanceSpan](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html)
///
/// Required feature: "android-text-style-TextAppearanceSpan"
public class TextAppearanceSpan ("android/text/style/TextAppearanceSpan") extends crate::android::text::style::MetricAffectingSpan, implements crate::android::text::ParcelableSpan {
/// [TextAppearanceSpan](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#TextAppearanceSpan(android.content.Context,%20int))
///
/// Required features: "android-content-Context"
#[cfg(any(feature = "all", all(feature = "android-content-Context")))]
pub fn new_Context_int<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::Context>>, arg1: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::text::style::TextAppearanceSpan>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;I)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1)];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/text/style/TextAppearanceSpan\0", "<init>\0", "(Landroid/content/Context;I)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [TextAppearanceSpan](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#TextAppearanceSpan(android.content.Context,%20int,%20int))
///
/// Required features: "android-content-Context"
#[cfg(any(feature = "all", all(feature = "android-content-Context")))]
pub fn new_Context_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::Context>>, arg1: i32, arg2: i32) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::text::style::TextAppearanceSpan>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/content/Context;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/text/style/TextAppearanceSpan\0", "<init>\0", "(Landroid/content/Context;II)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [TextAppearanceSpan](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#TextAppearanceSpan(java.lang.String,%20int,%20int,%20android.content.res.ColorStateList,%20android.content.res.ColorStateList))
///
/// Required features: "android-content-res-ColorStateList", "java-lang-String"
#[cfg(any(feature = "all", all(feature = "android-content-res-ColorStateList", feature = "java-lang-String")))]
pub fn new_String_int_int_ColorStateList_ColorStateList<'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, arg3: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::ColorStateList>>, arg4: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::res::ColorStateList>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::text::style::TextAppearanceSpan>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Ljava/lang/String;IILandroid/content/res/ColorStateList;Landroid/content/res/ColorStateList;)V"
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()), __jni_bindgen::AsJValue::as_jvalue(&arg4.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/text/style/TextAppearanceSpan\0", "<init>\0", "(Ljava/lang/String;IILandroid/content/res/ColorStateList;Landroid/content/res/ColorStateList;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [TextAppearanceSpan](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#TextAppearanceSpan(android.os.Parcel))
///
/// Required features: "android-os-Parcel"
#[cfg(any(feature = "all", all(feature = "android-os-Parcel")))]
pub fn new_Parcel<'env>(__jni_env: &'env __jni_bindgen::Env, 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::android::text::style::TextAppearanceSpan>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "<init>", .descriptor == "(Landroid/os/Parcel;)V"
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/text/style/TextAppearanceSpan\0", "<init>\0", "(Landroid/os/Parcel;)V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
/// [getSpanTypeId](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#getSpanTypeId())
pub fn getSpanTypeId<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "getSpanTypeId", .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/text/style/TextAppearanceSpan\0", "getSpanTypeId\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [describeContents](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#describeContents())
pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "describeContents", .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/text/style/TextAppearanceSpan\0", "describeContents\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [writeToParcel](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.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/text/style/TextAppearanceSpan", 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/text/style/TextAppearanceSpan\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getFamily](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#getFamily())
///
/// Required features: "java-lang-String"
#[cfg(any(feature = "all", all(feature = "java-lang-String")))]
pub fn getFamily<'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/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "getFamily", .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/text/style/TextAppearanceSpan\0", "getFamily\0", "()Ljava/lang/String;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTextColor](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#getTextColor())
///
/// Required features: "android-content-res-ColorStateList"
#[cfg(any(feature = "all", all(feature = "android-content-res-ColorStateList")))]
pub fn getTextColor<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::res::ColorStateList>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "getTextColor", .descriptor == "()Landroid/content/res/ColorStateList;"
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/text/style/TextAppearanceSpan\0", "getTextColor\0", "()Landroid/content/res/ColorStateList;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getLinkTextColor](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#getLinkTextColor())
///
/// Required features: "android-content-res-ColorStateList"
#[cfg(any(feature = "all", all(feature = "android-content-res-ColorStateList")))]
pub fn getLinkTextColor<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::content::res::ColorStateList>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "getLinkTextColor", .descriptor == "()Landroid/content/res/ColorStateList;"
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/text/style/TextAppearanceSpan\0", "getLinkTextColor\0", "()Landroid/content/res/ColorStateList;\0");
__jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTextSize](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#getTextSize())
pub fn getTextSize<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "getTextSize", .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/text/style/TextAppearanceSpan\0", "getTextSize\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [getTextStyle](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#getTextStyle())
pub fn getTextStyle<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "getTextStyle", .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/text/style/TextAppearanceSpan\0", "getTextStyle\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [updateDrawState](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#updateDrawState(android.text.TextPaint))
///
/// Required features: "android-text-TextPaint"
#[cfg(any(feature = "all", all(feature = "android-text-TextPaint")))]
pub fn updateDrawState<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::text::TextPaint>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "updateDrawState", .descriptor == "(Landroid/text/TextPaint;)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/text/style/TextAppearanceSpan\0", "updateDrawState\0", "(Landroid/text/TextPaint;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
/// [updateMeasureState](https://developer.android.com/reference/android/text/style/TextAppearanceSpan.html#updateMeasureState(android.text.TextPaint))
///
/// Required features: "android-text-TextPaint"
#[cfg(any(feature = "all", all(feature = "android-text-TextPaint")))]
pub fn updateMeasureState<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::text::TextPaint>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
// class.path == "android/text/style/TextAppearanceSpan", java.flags == PUBLIC, .name == "updateMeasureState", .descriptor == "(Landroid/text/TextPaint;)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/text/style/TextAppearanceSpan\0", "updateMeasureState\0", "(Landroid/text/TextPaint;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
}
}