Condividi tramite


CursorTreeAdapter.SetChildrenCursor(Int32, ICursor) Method

Definition

Sets the children Cursor for a particular group.

[Android.Runtime.Register("setChildrenCursor", "(ILandroid/database/Cursor;)V", "GetSetChildrenCursor_ILandroid_database_Cursor_Handler")]
public virtual void SetChildrenCursor (int groupPosition, Android.Database.ICursor? childrenCursor);
[<Android.Runtime.Register("setChildrenCursor", "(ILandroid/database/Cursor;)V", "GetSetChildrenCursor_ILandroid_database_Cursor_Handler")>]
abstract member SetChildrenCursor : int * Android.Database.ICursor -> unit
override this.SetChildrenCursor : int * Android.Database.ICursor -> unit

Parameters

groupPosition
Int32

The group whose children are being set via this Cursor.

childrenCursor
ICursor

The Cursor that contains the children of the group.

Attributes

Remarks

Sets the children Cursor for a particular group. If there is an existing cursor it will be closed.

This is useful when asynchronously querying to prevent blocking the UI.

Java documentation for android.widget.CursorTreeAdapter.setChildrenCursor(int, android.database.Cursor).

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