jni-android-sys 0.0.10

Autogenerated glue code for access Android JVM APIs from Rust
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


#[cfg(any(feature = "all", feature = "android-text-TextUtils_TruncateAt"))]
__jni_bindgen! {
    /// public enum [TextUtils.TruncateAt](https://developer.android.com/reference/android/text/TextUtils.TruncateAt.html)
    ///
    /// Required feature: "android-text-TextUtils_TruncateAt"
    public enum TextUtils_TruncateAt ("android/text/TextUtils$TruncateAt") extends crate::java::lang::Enum {

        /// [values](https://developer.android.com/reference/android/text/TextUtils.TruncateAt.html#values())
        ///
        /// Required features: "android-text-TextUtils_TruncateAt"
        #[cfg(any(feature = "all", all(feature = "android-text-TextUtils_TruncateAt")))]
        pub fn values<'env>(__jni_env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::android::text::TextUtils_TruncateAt, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/text/TextUtils$TruncateAt", java.flags == PUBLIC | STATIC, .name == "values", .descriptor == "()[Landroid/text/TextUtils$TruncateAt;"
            unsafe {
                let __jni_args = [];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/text/TextUtils$TruncateAt\0", "values\0", "()[Landroid/text/TextUtils$TruncateAt;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [valueOf](https://developer.android.com/reference/android/text/TextUtils.TruncateAt.html#valueOf(java.lang.String))
        ///
        /// Required features: "android-text-TextUtils_TruncateAt", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-text-TextUtils_TruncateAt", feature = "java-lang-String")))]
        pub fn valueOf<'env>(__jni_env: &'env __jni_bindgen::Env, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::text::TextUtils_TruncateAt>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/text/TextUtils$TruncateAt", java.flags == PUBLIC | STATIC, .name == "valueOf", .descriptor == "(Ljava/lang/String;)Landroid/text/TextUtils$TruncateAt;"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into())];
                let (__jni_class, __jni_method) = __jni_env.require_class_static_method("android/text/TextUtils$TruncateAt\0", "valueOf\0", "(Ljava/lang/String;)Landroid/text/TextUtils$TruncateAt;\0");
                __jni_env.call_static_object_method_a(__jni_class, __jni_method, __jni_args.as_ptr())
            }
        }

        /// **get** public static final [END](https://developer.android.com/reference/android/text/TextUtils.TruncateAt.html#END)
        ///
        /// Required feature: "android-text-TextUtils_TruncateAt"
        #[cfg(any(feature = "all", feature = "android-text-TextUtils_TruncateAt"))]
        pub fn END<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::text::TextUtils_TruncateAt>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("android/text/TextUtils$TruncateAt\0", "END\0", "Landroid/text/TextUtils$TruncateAt;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [MARQUEE](https://developer.android.com/reference/android/text/TextUtils.TruncateAt.html#MARQUEE)
        ///
        /// Required feature: "android-text-TextUtils_TruncateAt"
        #[cfg(any(feature = "all", feature = "android-text-TextUtils_TruncateAt"))]
        pub fn MARQUEE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::text::TextUtils_TruncateAt>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("android/text/TextUtils$TruncateAt\0", "MARQUEE\0", "Landroid/text/TextUtils$TruncateAt;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [MIDDLE](https://developer.android.com/reference/android/text/TextUtils.TruncateAt.html#MIDDLE)
        ///
        /// Required feature: "android-text-TextUtils_TruncateAt"
        #[cfg(any(feature = "all", feature = "android-text-TextUtils_TruncateAt"))]
        pub fn MIDDLE<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::text::TextUtils_TruncateAt>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("android/text/TextUtils$TruncateAt\0", "MIDDLE\0", "Landroid/text/TextUtils$TruncateAt;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }

        /// **get** public static final [START](https://developer.android.com/reference/android/text/TextUtils.TruncateAt.html#START)
        ///
        /// Required feature: "android-text-TextUtils_TruncateAt"
        #[cfg(any(feature = "all", feature = "android-text-TextUtils_TruncateAt"))]
        pub fn START<'env>(env: &'env __jni_bindgen::Env) -> __jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::text::TextUtils_TruncateAt>> {
            unsafe {
                let (__jni_class, __jni_field) = env.require_class_static_field("android/text/TextUtils$TruncateAt\0", "START\0", "Landroid/text/TextUtils$TruncateAt;\0");
                env.get_static_object_field(__jni_class, __jni_field)
            }
        }
    }
}