Java android.appwidget AppWidgetManager fields, constructors, methods, implement or subclass

Example usage for Java android.appwidget AppWidgetManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.appwidget AppWidgetManager.

The text is from its open source code.

Field

StringACTION_APPWIDGET_PICK
Activity action to launch from your AppWidgetHost activity when you want to pick an AppWidget to display.
StringACTION_APPWIDGET_BIND
Activity action to launch from your AppWidgetHost activity when you want to bind an AppWidget to display and bindAppWidgetIdIfAllowed returns false.
StringACTION_APPWIDGET_CONFIGURE
Sent when it is time to configure your AppWidget while it is being added to a host.
StringEXTRA_APPWIDGET_ID
An intent extra that contains one appWidgetId.
StringOPTION_APPWIDGET_MIN_WIDTH
A bundle extra that contains the lower bound on the current width, in dips, of a widget instance.
StringOPTION_APPWIDGET_MIN_HEIGHT
A bundle extra that contains the lower bound on the current height, in dips, of a widget instance.
StringOPTION_APPWIDGET_MAX_WIDTH
A bundle extra that contains the upper bound on the current width, in dips, of a widget instance.
StringOPTION_APPWIDGET_MAX_HEIGHT
A bundle extra that contains the upper bound on the current width, in dips, of a widget instance.
StringOPTION_APPWIDGET_HOST_CATEGORY
A bundle extra that hints to the AppWidgetProvider the category of host that owns this this widget.
StringEXTRA_APPWIDGET_IDS
An intent extra that contains multiple appWidgetIds.
StringEXTRA_APPWIDGET_PROVIDER
An intent extra that contains the component name of a AppWidget provider.
StringEXTRA_APPWIDGET_PROVIDER_PROFILE
An intent extra that contains the user handle of the profile under which an AppWidget provider is registered.
StringEXTRA_CUSTOM_INFO
An intent extra to pass to the AppWidget picker containing a java.util.List of AppWidgetProviderInfo objects to mix in to the list of AppWidgets that are installed.
StringEXTRA_CUSTOM_EXTRAS
An intent extra to pass to the AppWidget picker containing a java.util.List of android.os.Bundle objects to mix in to the list of AppWidgets that are installed.
intINVALID_APPWIDGET_ID
A sentinel value that the AppWidget manager will never return as a appWidgetId.
StringACTION_APPWIDGET_UPDATE
Sent when it is time to update your AppWidget.
StringACTION_APPWIDGET_OPTIONS_CHANGED
Sent when the custom extras for an AppWidget change.
StringACTION_APPWIDGET_DELETED
Sent when an instance of an AppWidget is deleted from its host.
StringACTION_APPWIDGET_ENABLED
Sent when an instance of an AppWidget is added to a host for the first time.

Method

int[]getAppWidgetIds(ComponentName provider)
Get the list of appWidgetIds that have been bound to the given AppWidget provider.
AppWidgetProviderInfogetAppWidgetInfo(int appWidgetId)
Get the available info about the AppWidget.
BundlegetAppWidgetOptions(int appWidgetId)
Get the extras associated with a given widget instance.
ListgetInstalledProviders()
Return a list of the AppWidget providers that are currently installed.
AppWidgetManagergetInstance(Context context)
Get the AppWidgetManager instance to use for the supplied android.content.Context Context object.
voidnotifyAppWidgetViewDataChanged(int[] appWidgetIds, int viewId)
Notifies the specified collection view in all the specified AppWidget instances to invalidate their data.
voidnotifyAppWidgetViewDataChanged(int appWidgetId, int viewId)
Notifies the specified collection view in the specified AppWidget instance to invalidate its data.
voidpartiallyUpdateAppWidget(int[] appWidgetIds, RemoteViews views)
Perform an incremental update or command on the widget(s) specified by appWidgetIds.
voidpartiallyUpdateAppWidget(int appWidgetId, RemoteViews views)
Perform an incremental update or command on the widget specified by appWidgetId.
voidupdateAppWidget(int[] appWidgetIds, RemoteViews views)
Set the RemoteViews to use for the specified appWidgetIds.
voidupdateAppWidget(int appWidgetId, RemoteViews views)
Set the RemoteViews to use for the specified appWidgetId.
voidupdateAppWidget(ComponentName provider, RemoteViews views)
Set the RemoteViews to use for all AppWidget instances for the supplied AppWidget provider.