You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: README.md
+5-5
Original file line number
Diff line number
Diff line change
@@ -8,9 +8,8 @@ Please, have a look at the **example** project.
8
8
9
9
**WidgetBuilder**
10
10
11
-
There is an interface `WidgetBuilder`, which has only one method `update(Context context, Bundle dataBundle, int... ids)`, that called in `UpdateService`, that contains WidgetUpdateLibrary.
11
+
There is an interface `WidgetUpdater`, which has only one method `update(Context context, Bundle dataBundle, int... ids)`.
12
12
13
-
Need to implement that interface.
14
13
```java
15
14
publicclassSingleUpdaterimplementsWidgetUpdater {
16
15
@Override
@@ -28,15 +27,16 @@ public class SingleUpdater implements WidgetUpdater {
28
27
29
28
**WidgetProvider**
30
29
31
-
Make an annotation `RemoteViewsUpdater` on `android.appwidget.AppWidgetProvider` with class that implements `WidgetBuilder`.
30
+
When creating your own widget you can use `RemoteViewsUpdater` annotation to link the `WidgetUpdater`'s child with your `android.appwidget.AppWidgetProvider` as below.
31
+
`WidgetUpdateService` is an `android.app.IntentService` which will invokes your `WidgetUpdater` by calling method `updateWidgets(Context context, AppWidgetsProvider provider, Bundle dataBundle, int... ids)`.
0 commit comments