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

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

        /// [updateAppWidget](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#updateAppWidget(int%5B%5D,%20android.widget.RemoteViews))
        ///
        /// Required features: "android-widget-RemoteViews"
        #[cfg(any(feature = "all", all(feature = "android-widget-RemoteViews")))]
        pub fn updateAppWidget_int_array_RemoteViews<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::RemoteViews>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/appwidget/AppWidgetManager", java.flags == PUBLIC, .name == "updateAppWidget", .descriptor == "([ILandroid/widget/RemoteViews;)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/appwidget/AppWidgetManager\0", "updateAppWidget\0", "([ILandroid/widget/RemoteViews;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [partiallyUpdateAppWidget](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#partiallyUpdateAppWidget(int%5B%5D,%20android.widget.RemoteViews))
        ///
        /// Required features: "android-widget-RemoteViews"
        #[cfg(any(feature = "all", all(feature = "android-widget-RemoteViews")))]
        pub fn partiallyUpdateAppWidget_int_array_RemoteViews<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>, arg1: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env crate::android::widget::RemoteViews>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/appwidget/AppWidgetManager", java.flags == PUBLIC, .name == "partiallyUpdateAppWidget", .descriptor == "([ILandroid/widget/RemoteViews;)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/appwidget/AppWidgetManager\0", "partiallyUpdateAppWidget\0", "([ILandroid/widget/RemoteViews;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

        /// [updateAppWidget](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#updateAppWidget(android.content.ComponentName,%20android.widget.RemoteViews))
        ///
        /// Required features: "android-content-ComponentName", "android-widget-RemoteViews"
        #[cfg(any(feature = "all", all(feature = "android-content-ComponentName", feature = "android-widget-RemoteViews")))]
        pub fn updateAppWidget_ComponentName_RemoteViews<'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::widget::RemoteViews>>) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/appwidget/AppWidgetManager", java.flags == PUBLIC, .name == "updateAppWidget", .descriptor == "(Landroid/content/ComponentName;Landroid/widget/RemoteViews;)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/appwidget/AppWidgetManager\0", "updateAppWidget\0", "(Landroid/content/ComponentName;Landroid/widget/RemoteViews;)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [notifyAppWidgetViewDataChanged](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#notifyAppWidgetViewDataChanged(int%5B%5D,%20int))
        pub fn notifyAppWidgetViewDataChanged_int_array_int<'env>(&'env self, arg0: impl __jni_bindgen::std::convert::Into<__jni_bindgen::std::option::Option<&'env __jni_bindgen::IntArray>>, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/appwidget/AppWidgetManager", java.flags == PUBLIC, .name == "notifyAppWidgetViewDataChanged", .descriptor == "([II)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/appwidget/AppWidgetManager\0", "notifyAppWidgetViewDataChanged\0", "([II)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

        /// [notifyAppWidgetViewDataChanged](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#notifyAppWidgetViewDataChanged(int,%20int))
        pub fn notifyAppWidgetViewDataChanged_int_int<'env>(&'env self, arg0: i32, arg1: i32) -> __jni_bindgen::std::result::Result<(), __jni_bindgen::Local<'env, crate::java::lang::Throwable>> {
            // class.path == "android/appwidget/AppWidgetManager", java.flags == PUBLIC, .name == "notifyAppWidgetViewDataChanged", .descriptor == "(II)V"
            unsafe {
                let __jni_args = [__jni_bindgen::AsJValue::as_jvalue(&arg0), __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/appwidget/AppWidgetManager\0", "notifyAppWidgetViewDataChanged\0", "(II)V\0");
                __jni_env.call_void_method_a(self.0.object, __jni_method, __jni_args.as_ptr())
            }
        }

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

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

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

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

        /// public static final [ACTION_APPWIDGET_PICK](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#ACTION_APPWIDGET_PICK)
        pub const ACTION_APPWIDGET_PICK : &'static str = "android.appwidget.action.APPWIDGET_PICK";

        /// public static final [ACTION_APPWIDGET_CONFIGURE](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#ACTION_APPWIDGET_CONFIGURE)
        pub const ACTION_APPWIDGET_CONFIGURE : &'static str = "android.appwidget.action.APPWIDGET_CONFIGURE";

        /// public static final [EXTRA_APPWIDGET_ID](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#EXTRA_APPWIDGET_ID)
        pub const EXTRA_APPWIDGET_ID : &'static str = "appWidgetId";

        /// public static final [EXTRA_APPWIDGET_IDS](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#EXTRA_APPWIDGET_IDS)
        pub const EXTRA_APPWIDGET_IDS : &'static str = "appWidgetIds";

        /// public static final [EXTRA_CUSTOM_INFO](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#EXTRA_CUSTOM_INFO)
        pub const EXTRA_CUSTOM_INFO : &'static str = "customInfo";

        /// public static final [EXTRA_CUSTOM_EXTRAS](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#EXTRA_CUSTOM_EXTRAS)
        pub const EXTRA_CUSTOM_EXTRAS : &'static str = "customExtras";

        /// public static final [INVALID_APPWIDGET_ID](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#INVALID_APPWIDGET_ID)
        pub const INVALID_APPWIDGET_ID : i32 = 0;

        /// public static final [ACTION_APPWIDGET_UPDATE](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#ACTION_APPWIDGET_UPDATE)
        pub const ACTION_APPWIDGET_UPDATE : &'static str = "android.appwidget.action.APPWIDGET_UPDATE";

        /// public static final [ACTION_APPWIDGET_DELETED](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#ACTION_APPWIDGET_DELETED)
        pub const ACTION_APPWIDGET_DELETED : &'static str = "android.appwidget.action.APPWIDGET_DELETED";

        /// public static final [ACTION_APPWIDGET_DISABLED](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#ACTION_APPWIDGET_DISABLED)
        pub const ACTION_APPWIDGET_DISABLED : &'static str = "android.appwidget.action.APPWIDGET_DISABLED";

        /// public static final [ACTION_APPWIDGET_ENABLED](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#ACTION_APPWIDGET_ENABLED)
        pub const ACTION_APPWIDGET_ENABLED : &'static str = "android.appwidget.action.APPWIDGET_ENABLED";

        /// public static final [META_DATA_APPWIDGET_PROVIDER](https://developer.android.com/reference/android/appwidget/AppWidgetManager.html#META_DATA_APPWIDGET_PROVIDER)
        pub const META_DATA_APPWIDGET_PROVIDER : &'static str = "android.appwidget.provider";
    }
}