AppWidgetManager.NotifyAppWidgetViewDataChanged 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
| 名稱 | Description |
|---|---|
| NotifyAppWidgetViewDataChanged(Int32, Int32) |
通知指定 AppWidget 實例中指定的集合檢視,使其資料失效。 |
| NotifyAppWidgetViewDataChanged(Int32[], Int32) |
通知所有指定 AppWidget 實例中的集合檢視,使其資料失效。 |
NotifyAppWidgetViewDataChanged(Int32, Int32)
通知指定 AppWidget 實例中指定的集合檢視,使其資料失效。
[Android.Runtime.Register("notifyAppWidgetViewDataChanged", "(II)V", "GetNotifyAppWidgetViewDataChanged_IIHandler")]
public virtual void NotifyAppWidgetViewDataChanged(int appWidgetId, int viewId);
[<Android.Runtime.Register("notifyAppWidgetViewDataChanged", "(II)V", "GetNotifyAppWidgetViewDataChanged_IIHandler")>]
abstract member NotifyAppWidgetViewDataChanged : int * int -> unit
override this.NotifyAppWidgetViewDataChanged : int * int -> unit
參數
- appWidgetId
- Int32
AppWidget 實例用來通知查看資料變更。
- viewId
- Int32
集合檢視 ID。
- 屬性
備註
通知指定 AppWidget 實例中指定的集合檢視,使其資料失效。
此會員已被棄用。 與此方法相關的對應 API RemoteViews#setRemoteAdapter(int, Intent) 已被棄用。 未來請改RemoteViews#setRemoteAdapter(int, android.widget.RemoteViews.RemoteCollectionItems)用 遠端介面卡的設定android.widget.RemoteViews.RemoteCollectionItems,並透過呼叫 #updateAppWidget(int[], RemoteViews)、 #updateAppWidget(int, RemoteViews)、 #updateAppWidget(ComponentName, RemoteViews)#partiallyUpdateAppWidget(int[], RemoteViews)、 或 #partiallyUpdateAppWidget(int, RemoteViews),來更新小工具檢視。
Java 文件 android.appwidget.AppWidgetManager.notifyAppWidgetViewDataChanged(int, int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。
適用於
NotifyAppWidgetViewDataChanged(Int32[], Int32)
通知所有指定 AppWidget 實例中的集合檢視,使其資料失效。
[Android.Runtime.Register("notifyAppWidgetViewDataChanged", "([II)V", "GetNotifyAppWidgetViewDataChanged_arrayIIHandler")]
public virtual void NotifyAppWidgetViewDataChanged(int[]? appWidgetIds, int viewId);
[<Android.Runtime.Register("notifyAppWidgetViewDataChanged", "([II)V", "GetNotifyAppWidgetViewDataChanged_arrayIIHandler")>]
abstract member NotifyAppWidgetViewDataChanged : int[] * int -> unit
override this.NotifyAppWidgetViewDataChanged : int[] * int -> unit
參數
- appWidgetIds
- Int32[]
AppWidget 實例用來通知查看資料變更。
- viewId
- Int32
集合檢視 ID。
- 屬性
備註
通知所有指定 AppWidget 實例中的集合檢視,使其資料失效。
此會員已被棄用。 與此方法相關的對應 API RemoteViews#setRemoteAdapter(int, Intent) 已被棄用。 未來請改RemoteViews#setRemoteAdapter(int, android.widget.RemoteViews.RemoteCollectionItems)用 遠端介面卡的設定android.widget.RemoteViews.RemoteCollectionItems,並透過呼叫 #updateAppWidget(int[], RemoteViews)、 #updateAppWidget(int, RemoteViews)、 #updateAppWidget(ComponentName, RemoteViews)#partiallyUpdateAppWidget(int[], RemoteViews)、 或 #partiallyUpdateAppWidget(int, RemoteViews),來更新小工具檢視。
Java 文件 android.appwidget.AppWidgetManager.notifyAppWidgetViewDataChanged(int[], int)。
本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。