Share via


RemoteViewsService.IRemoteViewsFactory.GetViewAt(Int32) Method

Definition

See Adapter#getView(int, android.view.View, android.view.ViewGroup).

[Android.Runtime.Register("getViewAt", "(I)Landroid/widget/RemoteViews;", "GetGetViewAt_IHandler:Android.Widget.RemoteViewsService/IRemoteViewsFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public Android.Widget.RemoteViews? GetViewAt (int position);
[<Android.Runtime.Register("getViewAt", "(I)Landroid/widget/RemoteViews;", "GetGetViewAt_IHandler:Android.Widget.RemoteViewsService/IRemoteViewsFactoryInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member GetViewAt : int -> Android.Widget.RemoteViews

Parameters

position
Int32

The position of the item within the Factory's data set of the item whose view we want.

Returns

A RemoteViews object corresponding to the data at the specified position.

Attributes

Remarks

See Adapter#getView(int, android.view.View, android.view.ViewGroup).

Note: expensive tasks can be safely performed synchronously within this method, and a loading view will be displayed in the interim. See #getLoadingView().

Java documentation for android.widget.RemoteViewsService.RemoteViewsFactory.getViewAt(int).

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