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-app-NotificationManager"))]
__jni_bindgen! {
    /// public class [NotificationManager](https://developer.android.com/reference/android/app/NotificationManager.html)
    ///
    /// Required feature: "android-app-NotificationManager"
    public class NotificationManager ("android/app/NotificationManager") extends crate::java::lang::Object {

        /// [notify](https://developer.android.com/reference/android/app/NotificationManager.html#notify(int,%20android.app.Notification))
        ///
        /// Required features: "android-app-Notification"
        #[cfg(any(feature = "all", all(feature = "android-app-Notification")))]
        pub fn notify_int_Notification<'env>(&'env self, arg0: i32, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Notification>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "notify", .descriptor == "(ILandroid/app/Notification;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/app/NotificationManager\0", "notify\0", "(ILandroid/app/Notification;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [notify](https://developer.android.com/reference/android/app/NotificationManager.html#notify(java.lang.String,%20int,%20android.app.Notification))
        ///
        /// Required features: "android-app-Notification", "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "android-app-Notification", feature = "java-lang-String")))]
        pub fn notify_String_int_Notification<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32, arg2: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::Notification>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "notify", .descriptor == "(Ljava/lang/String;ILandroid/app/Notification;)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0.into()), __jni_bindgen::AsJValue::as_jvalue(&arg1), __jni_bindgen::AsJValue::as_jvalue(&arg2.into())];
                let __jni_env = __jni_bindgen::Env::from_ptr(self.0.env);
                let (__jni_class, __jni_method) = __jni_env.require_class_method("android/app/NotificationManager\0", "notify\0", "(Ljava/lang/String;ILandroid/app/Notification;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [cancel](https://developer.android.com/reference/android/app/NotificationManager.html#cancel(int))
        pub fn cancel_int<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "cancel", .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/app/NotificationManager\0", "cancel\0", "(I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [cancel](https://developer.android.com/reference/android/app/NotificationManager.html#cancel(java.lang.String,%20int))
        ///
        /// Required features: "java-lang-String"
        #[cfg(any(feature = "all", all(feature = "java-lang-String")))]
        pub fn cancel_String_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::java::lang::String>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "cancel", .descriptor == "(Ljava/lang/String;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/app/NotificationManager\0", "cancel\0", "(Ljava/lang/String;I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [cancelAll](https://developer.android.com/reference/android/app/NotificationManager.html#cancelAll())
        pub fn cancelAll<'env>(&'env self) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "cancelAll", .descriptor == "()V"
            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/app/NotificationManager\0", "cancelAll\0", "()V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [isNotificationPolicyAccessGranted](https://developer.android.com/reference/android/app/NotificationManager.html#isNotificationPolicyAccessGranted())
        pub fn isNotificationPolicyAccessGranted<'env>(&'env self) -> __jni_bindgen::std::result::Result<bool, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "isNotificationPolicyAccessGranted", .descriptor == "()Z"
            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/app/NotificationManager\0", "isNotificationPolicyAccessGranted\0", "()Z\0");
                __jni_env.call_boolean_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getNotificationPolicy](https://developer.android.com/reference/android/app/NotificationManager.html#getNotificationPolicy())
        ///
        /// Required features: "android-app-NotificationManager_Policy"
        #[cfg(any(feature = "all", all(feature = "android-app-NotificationManager_Policy")))]
        pub fn getNotificationPolicy<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, crate::android::app::NotificationManager_Policy>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "getNotificationPolicy", .descriptor == "()Landroid/app/NotificationManager$Policy;"
            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/app/NotificationManager\0", "getNotificationPolicy\0", "()Landroid/app/NotificationManager$Policy;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setNotificationPolicy](https://developer.android.com/reference/android/app/NotificationManager.html#setNotificationPolicy(android.app.NotificationManager.Policy))
        ///
        /// Required features: "android-app-NotificationManager_Policy"
        #[cfg(any(feature = "all", all(feature = "android-app-NotificationManager_Policy")))]
        pub fn setNotificationPolicy<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::app::NotificationManager_Policy>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "setNotificationPolicy", .descriptor == "(Landroid/app/NotificationManager$Policy;)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/app/NotificationManager\0", "setNotificationPolicy\0", "(Landroid/app/NotificationManager$Policy;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getActiveNotifications](https://developer.android.com/reference/android/app/NotificationManager.html#getActiveNotifications())
        ///
        /// Required features: "android-service-notification-StatusBarNotification"
        #[cfg(any(feature = "all", all(feature = "android-service-notification-StatusBarNotification")))]
        pub fn getActiveNotifications<'env>(&'env self) -> __jni_bindgen::std::result::Result<__jni_bindgen::std::option::Option<__jni_bindgen::Local<'env, __jni_bindgen::ObjectArray<crate::android::service::notification::StatusBarNotification, crate::java::lang::Throwable>>>, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC, .name == "getActiveNotifications", .descriptor == "()[Landroid/service/notification/StatusBarNotification;"
            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/app/NotificationManager\0", "getActiveNotifications\0", "()[Landroid/service/notification/StatusBarNotification;\0");
                __jni_env.call_object_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [getCurrentInterruptionFilter](https://developer.android.com/reference/android/app/NotificationManager.html#getCurrentInterruptionFilter())
        pub fn getCurrentInterruptionFilter<'env>(&'env self) -> __jni_bindgen::std::result::Result<i32, __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC | FINAL, .name == "getCurrentInterruptionFilter", .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/app/NotificationManager\0", "getCurrentInterruptionFilter\0", "()I\0");
                __jni_env.call_int_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [setInterruptionFilter](https://developer.android.com/reference/android/app/NotificationManager.html#setInterruptionFilter(int))
        pub fn setInterruptionFilter<'env>(&'env self, arg0: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/app/NotificationManager", java.flags == PUBLIC | FINAL, .name == "setInterruptionFilter", .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/app/NotificationManager\0", "setInterruptionFilter\0", "(I)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// public static final [ACTION_INTERRUPTION_FILTER_CHANGED](https://developer.android.com/reference/android/app/NotificationManager.html#ACTION_INTERRUPTION_FILTER_CHANGED)
        pub const ACTION_INTERRUPTION_FILTER_CHANGED : &'static str = "android.app.action.INTERRUPTION_FILTER_CHANGED";

        /// public static final [ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED](https://developer.android.com/reference/android/app/NotificationManager.html#ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED)
        pub const ACTION_NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED : &'static str = "android.app.action.NOTIFICATION_POLICY_ACCESS_GRANTED_CHANGED";

        /// public static final [ACTION_NOTIFICATION_POLICY_CHANGED](https://developer.android.com/reference/android/app/NotificationManager.html#ACTION_NOTIFICATION_POLICY_CHANGED)
        pub const ACTION_NOTIFICATION_POLICY_CHANGED : &'static str = "android.app.action.NOTIFICATION_POLICY_CHANGED";

        /// public static final [INTERRUPTION_FILTER_ALARMS](https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_ALARMS)
        pub const INTERRUPTION_FILTER_ALARMS : i32 = 4;

        /// public static final [INTERRUPTION_FILTER_ALL](https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_ALL)
        pub const INTERRUPTION_FILTER_ALL : i32 = 1;

        /// public static final [INTERRUPTION_FILTER_NONE](https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_NONE)
        pub const INTERRUPTION_FILTER_NONE : i32 = 3;

        /// public static final [INTERRUPTION_FILTER_PRIORITY](https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_PRIORITY)
        pub const INTERRUPTION_FILTER_PRIORITY : i32 = 2;

        /// public static final [INTERRUPTION_FILTER_UNKNOWN](https://developer.android.com/reference/android/app/NotificationManager.html#INTERRUPTION_FILTER_UNKNOWN)
        pub const INTERRUPTION_FILTER_UNKNOWN : i32 = 0;
    }
}