diff options
| author | TreeHugger Robot <treehugger-gerrit@google.com> | 2021-06-01 18:16:17 +0000 |
|---|---|---|
| committer | Android (Google) Code Review <android-gerrit@google.com> | 2021-06-01 18:16:17 +0000 |
| commit | ec498b70d4b760ab659e97eba69b75c4a6d20588 (patch) | |
| tree | 4c4ae155e9eb731a84ea42fd8f4f75de029278be /core/java | |
| parent | df773665d02ab79a38908e180f436127f8085f98 (diff) | |
| parent | 78808a5951d9ddac07d31fadf391a5ea8967460c (diff) | |
Merge "Update the documentation of AppWidgetManager" into sc-dev
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/appwidget/AppWidgetManager.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/core/java/android/appwidget/AppWidgetManager.java b/core/java/android/appwidget/AppWidgetManager.java index a88aed7f20a3..18c638112480 100644 --- a/core/java/android/appwidget/AppWidgetManager.java +++ b/core/java/android/appwidget/AppWidgetManager.java @@ -963,6 +963,9 @@ public class AppWidgetManager { /** * Set the component for a given appWidgetId. * + * If successful, the app widget provider will receive a {@link #ACTION_APPWIDGET_UPDATE} + * broadcast. + * * <p class="note">You need the BIND_APPWIDGET permission or the user must have enabled binding * widgets always for your component. Should be used by apps that host widgets; if this * method returns false, call {@link #ACTION_APPWIDGET_BIND} to request permission to @@ -983,6 +986,9 @@ public class AppWidgetManager { /** * Set the component for a given appWidgetId. * + * If successful, the app widget provider will receive a {@link #ACTION_APPWIDGET_UPDATE} + * broadcast. + * * <p class="note">You need the BIND_APPWIDGET permission or the user must have enabled binding * widgets always for your component. Should be used by apps that host widgets; if this * method returns false, call {@link #ACTION_APPWIDGET_BIND} to request permission to @@ -1006,6 +1012,10 @@ public class AppWidgetManager { /** * Set the provider for a given appWidgetId if the caller has a permission. + * + * If successful, the app widget provider will receive a {@link #ACTION_APPWIDGET_UPDATE} + * broadcast. + * * <p> * <strong>Note:</strong> You need the {@link android.Manifest.permission#BIND_APPWIDGET} * permission or the user must have enabled binding widgets always for your component. |
