RemoteViewsService.IRemoteViewsFactory.OnDataSetChanged Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when notifyDataSetChanged() is triggered on the remote adapter.
[Android.Runtime.Register("onDataSetChanged", "()V", "GetOnDataSetChangedHandler:Android.Widget.RemoteViewsService/IRemoteViewsFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnDataSetChanged ();
[<Android.Runtime.Register("onDataSetChanged", "()V", "GetOnDataSetChangedHandler:Android.Widget.RemoteViewsService/IRemoteViewsFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnDataSetChanged : unit -> unit
- Attributes
Remarks
Called when notifyDataSetChanged() is triggered on the remote adapter. This allows a RemoteViewsFactory to respond to data changes by updating any internal references.
Note: expensive tasks can be safely performed synchronously within this method. In the interim, the old data will be displayed within the widget.
Java documentation for android.widget.RemoteViewsService.RemoteViewsFactory.onDataSetChanged()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
See also
- <xref:Android.Appwidget.AppWidgetManager.NotifyAppWidgetViewDataChanged(System.Int32%5b%5d%2c+System.Int32)>