1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


__jni_bindgen! {
    /// public interface [ComponentCallbacks2](https://developer.android.com/reference/android/content/ComponentCallbacks2.html)
    ///
    /// Required feature: android-content-ComponentCallbacks2
    #[cfg(any(feature = "all", feature = "android-content-ComponentCallbacks2"))]
    public interface ComponentCallbacks2 extends crate::java::lang::Object, implements crate::android::content::ComponentCallbacks {

        /// [onTrimMemory](https://developer.android.com/reference/android/content/ComponentCallbacks2.html#onTrimMemory(int))
        pub fn on_trim_memory<'env>(&'env self, arg0: i32) -> __jni_bindgen::Result<()> {
            // class.path == "android/content/ComponentCallbacks2", java.flags == PUBLIC | ABSTRACT, .name == "onTrimMemory", .descriptor == "(I)V"
            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/content/ComponentCallbacks2\0", "onTrimMemory\0", "(I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [TRIM_MEMORY_BACKGROUND](https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_BACKGROUND)
        pub const TRIM_MEMORY_BACKGROUND : i32 = 40;

        /// public static final [TRIM_MEMORY_COMPLETE](https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_COMPLETE)
        pub const TRIM_MEMORY_COMPLETE : i32 = 80;

        /// public static final [TRIM_MEMORY_MODERATE](https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_MODERATE)
        pub const TRIM_MEMORY_MODERATE : i32 = 60;

        /// public static final [TRIM_MEMORY_RUNNING_CRITICAL](https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_CRITICAL)
        pub const TRIM_MEMORY_RUNNING_CRITICAL : i32 = 15;

        /// public static final [TRIM_MEMORY_RUNNING_LOW](https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_LOW)
        pub const TRIM_MEMORY_RUNNING_LOW : i32 = 10;

        /// public static final [TRIM_MEMORY_RUNNING_MODERATE](https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_RUNNING_MODERATE)
        pub const TRIM_MEMORY_RUNNING_MODERATE : i32 = 5;

        /// public static final [TRIM_MEMORY_UI_HIDDEN](https://developer.android.com/reference/android/content/ComponentCallbacks2.html#TRIM_MEMORY_UI_HIDDEN)
        pub const TRIM_MEMORY_UI_HIDDEN : i32 = 20;
    }
}