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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// WARNING:  This file was autogenerated by jni-bindgen.  Any changes to this file may be lost!!!


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

        /// [onServiceConnected](https://developer.android.com/reference/android/content/ServiceConnection.html#onServiceConnected(android,%2520content,%2520ComponentName,%2520android,%2520os,%2520IBinder))
        ///
        /// Required features: "android-content-ComponentName", "android-os-IBinder"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentName", feature = "android-os-IBinder")))]
        pub fn on_service_connected<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::os::IBinder>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/content/ServiceConnection", java.flags == PUBLIC | ABSTRACT, .name == "onServiceConnected", .descriptor == "(Landroid/content/ComponentName;Landroid/os/IBinder;)V"
            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/content/ServiceConnection\0", "onServiceConnected\0", "(Landroid/content/ComponentName;Landroid/os/IBinder;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onServiceDisconnected](https://developer.android.com/reference/android/content/ServiceConnection.html#onServiceDisconnected(android,%2520content,%2520ComponentName))
        ///
        /// Required features: "android-content-ComponentName"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentName")))]
        pub fn on_service_disconnected<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/content/ServiceConnection", java.flags == PUBLIC | ABSTRACT, .name == "onServiceDisconnected", .descriptor == "(Landroid/content/ComponentName;)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/content/ServiceConnection\0", "onServiceDisconnected\0", "(Landroid/content/ComponentName;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onBindingDied](https://developer.android.com/reference/android/content/ServiceConnection.html#onBindingDied(android,%2520content,%2520ComponentName))
        ///
        /// Required features: "android-content-ComponentName"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentName")))]
        pub fn on_binding_died<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/content/ServiceConnection", java.flags == PUBLIC, .name == "onBindingDied", .descriptor == "(Landroid/content/ComponentName;)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/content/ServiceConnection\0", "onBindingDied\0", "(Landroid/content/ComponentName;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [onNullBinding](https://developer.android.com/reference/android/content/ServiceConnection.html#onNullBinding(android,%2520content,%2520ComponentName))
        ///
        /// Required features: "android-content-ComponentName"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentName")))]
        pub fn on_null_binding<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::content::ComponentName>>) -> __jni_bindgen::Result<()> {
            // class.path == "android/content/ServiceConnection", java.flags == PUBLIC, .name == "onNullBinding", .descriptor == "(Landroid/content/ComponentName;)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/content/ServiceConnection\0", "onNullBinding\0", "(Landroid/content/ComponentName;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }
    }
}