Skip to content

Commit

Permalink
update doc
Browse files Browse the repository at this point in the history
  • Loading branch information
jrfeng committed Feb 19, 2023
1 parent 20055f2 commit 4dfec4e
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions player/src/main/java/snow/player/PlayerService.java
Original file line number Diff line number Diff line change
Expand Up @@ -588,11 +588,30 @@ protected HistoryRecorder onCreateHistoryRecorder() {
return null;
}

/**
* 返回你的 AppWidget 的 Class 对象。
* <p>
* 在该方法中返回你的 AppWidget 的 Class 对象,以便在播放器状态改变时刷新 APpWidget。
* <p>
* 如果你的 App 有多个 AppWidget 需要刷新,请可以重载 {@link #getAppWidgets()} 方法。
* 如果重载了 {@link #getAppWidgets()} 方法并且返回了一个非 null 值,则该方法将不再有效。
*
* @see #getAppWidgets()
*/
@Nullable
protected Class<? extends AppWidgetProvider> getAppWidget() {
return null;
}

/**
* 返回你的 AppWidget 的 Class 对象。
* <p>
* 在该方法中返回你的 AppWidget 的 Class 对象,以便在播放器状态改变时刷新 APpWidget。
* <p>
* 如果你的 App 仅有单个 AppWidget 需要刷新,建议优先重载 {@link #getAppWidget()}。
*
* @see #getAppWidget()
*/
@Nullable
protected List<Class<? extends AppWidgetProvider>> getAppWidgets() {
return null;
Expand Down

0 comments on commit 4dfec4e

Please sign in to comment.