#[cfg(any(feature = "all", feature = "android-view-inputmethod-EditorInfo"))]
__jni_bindgen! {
public class EditorInfo ("android/view/inputmethod/EditorInfo") extends crate::java::lang::Object, implements crate::android::text::InputType, crate::android::os::Parcelable {
pub fn new<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::Local<'env, crate::android::view::inputmethod::EditorInfo>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [];
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/inputmethod/EditorInfo\0", "<init>\0", "()V\0");
__jni_env.new_object_a(__jni_class, __jni_method, __jni_args.as_ptr())
}
}
pub fn makeCompatible<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __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/view/inputmethod/EditorInfo\0", "makeCompatible\0", "(I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[cfg(any(feature = "all", all(feature = "android-util-Printer", feature = "java-lang-String")))]
pub fn dump<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::util::Printer>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
unsafe {
let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1.into())];
let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_method) = __jni_env.require_class_method("android/view/inputmethod/EditorInfo\0", "dump\0", "(Landroid/util/Printer;Ljava/lang/String;)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
#[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>> {
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/view/inputmethod/EditorInfo\0", "writeToParcel\0", "(Landroid/os/Parcel;I)V\0");
__jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn describeContents<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
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/view/inputmethod/EditorInfo\0", "describeContents\0", "()I\0");
__jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
}
}
pub fn inputType<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "inputType\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_inputType<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "inputType\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub const IME_MASK_ACTION : i32 = 255;
pub const IME_ACTION_UNSPECIFIED : i32 = 0;
pub const IME_ACTION_NONE : i32 = 1;
pub const IME_ACTION_GO : i32 = 2;
pub const IME_ACTION_SEARCH : i32 = 3;
pub const IME_ACTION_SEND : i32 = 4;
pub const IME_ACTION_NEXT : i32 = 5;
pub const IME_ACTION_DONE : i32 = 6;
pub const IME_ACTION_PREVIOUS : i32 = 7;
pub const IME_FLAG_NO_FULLSCREEN : i32 = 33554432;
pub const IME_FLAG_NAVIGATE_PREVIOUS : i32 = 67108864;
pub const IME_FLAG_NAVIGATE_NEXT : i32 = 134217728;
pub const IME_FLAG_NO_EXTRACT_UI : i32 = 268435456;
pub const IME_FLAG_NO_ACCESSORY_ACTION : i32 = 536870912;
pub const IME_FLAG_NO_ENTER_ACTION : i32 = 1073741824;
pub const IME_NULL : i32 = 0;
pub fn imeOptions<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "imeOptions\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_imeOptions<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "imeOptions\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn privateImeOptions<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "privateImeOptions\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_privateImeOptions<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "privateImeOptions\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn actionLabel<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "actionLabel\0", "Ljava/lang/CharSequence;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn set_actionLabel<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::CharSequence>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "actionLabel\0", "Ljava/lang/CharSequence;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn actionId<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "actionId\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_actionId<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "actionId\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn initialSelStart<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "initialSelStart\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_initialSelStart<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "initialSelStart\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn initialSelEnd<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "initialSelEnd\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_initialSelEnd<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "initialSelEnd\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
pub fn initialCapsMode<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "initialCapsMode\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_initialCapsMode<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "initialCapsMode\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn hintText<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "hintText\0", "Ljava/lang/CharSequence;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn set_hintText<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::CharSequence>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "hintText\0", "Ljava/lang/CharSequence;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn label<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::CharSequence>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "label\0", "Ljava/lang/CharSequence;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-CharSequence"))]
pub fn set_label<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::CharSequence>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "label\0", "Ljava/lang/CharSequence;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn packageName<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "packageName\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_packageName<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "packageName\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
pub fn fieldId<'env>(&'env self) -> i32 {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "fieldId\0", "I\0");
env.get_int_field(self.0.object, __jni_field)
}
}
pub fn set_fieldId<'env>(&'env self, value: i32) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "fieldId\0", "I\0");
env.set_int_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn fieldName<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::java::lang::String>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "fieldName\0", "Ljava/lang/String;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "java-lang-String"))]
pub fn set_fieldName<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::java::lang::String>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "fieldName\0", "Ljava/lang/String;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[cfg(any(feature = "all", feature = "android-os-Bundle"))]
pub fn extras<'env>(&'env self) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::os::Bundle>> {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "extras\0", "Landroid/os/Bundle;\0");
env.get_object_field(self.0.object, __jni_field)
}
}
#[cfg(any(feature = "all", feature = "android-os-Bundle"))]
pub fn set_extras<'env, 'obj>(&'env self, value: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'obj crate::android::os::Bundle>>) {
unsafe {
let env = __jni_bindgen::Env::from_ptr(self.0.env);
let (__jni_class, __jni_field) = env.require_class_field("android/view/inputmethod/EditorInfo\0", "extras\0", "Landroid/os/Bundle;\0");
env.set_object_field(self.0.object, __jni_field, value)
}
}
#[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/view/inputmethod/EditorInfo\0", "CREATOR\0", "Landroid/os/Parcelable$Creator;\0");
env.get_static_object_field(__jni_class, __jni_field)
}
}
}
}