Android Guides | Samples

Android.Widget.RemoteViewsService.IRemoteViewsFactory

An interface for an adapter between a remote collection view (ListView, GridView, etc) and the underlying data for that view.

See Also: RemoteViewsService+IRemoteViewsFactory

Syntax

[Android.Runtime.Register("android/widget/RemoteViewsService$RemoteViewsFactory", "", "Android.Widget.RemoteViewsService/IRemoteViewsFactoryInvoker")]
public interface RemoteViewsService.IRemoteViewsFactory : IJavaObject, IDisposable

Remarks

An interface for an adapter between a remote collection view (ListView, GridView, etc) and the underlying data for that view. The implementor is responsible for making a RemoteView for each item in the data set. This interface is a thin wrapper around Adapter.

See Also

[Android Documentation]

Requirements

Namespace: Android.Widget
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 11

The members of Android.Widget.RemoteViewsService.IRemoteViewsFactory are listed below.

Public Properties

[read-only]
CountInt32. See Adapter.getCount()
[read-only]
HasStableIdsBoolean. See Adapter.hasStableIds().
[read-only]
LoadingViewRemoteViews. This allows for the use of a custom loading view which appears between the time that RemoteViewsService+IRemoteViewsFactory.GetViewAt(Int32) is called and returns.
[read-only]
ViewTypeCountInt32. See Adapter.getViewTypeCount().

Public Methods

GetItemId(Int32) : Int64
See Adapter.getItemId(int).
GetViewAt(Int32) : RemoteViews
See IAdapter.GetView.
OnCreate()
Called when your factory is first constructed.
OnDataSetChanged()
Called when notifyDataSetChanged() is triggered on the remote adapter.
OnDestroy()
Called when the last RemoteViewsAdapter that is associated with this factory is unbound.