Condividi tramite


CursorTreeAdapter.GetChildrenCursor(ICursor) Method

Definition

Gets the Cursor for the children at the given group.

[Android.Runtime.Register("getChildrenCursor", "(Landroid/database/Cursor;)Landroid/database/Cursor;", "GetGetChildrenCursor_Landroid_database_Cursor_Handler")]
protected abstract Android.Database.ICursor? GetChildrenCursor (Android.Database.ICursor? groupCursor);
[<Android.Runtime.Register("getChildrenCursor", "(Landroid/database/Cursor;)Landroid/database/Cursor;", "GetGetChildrenCursor_Landroid_database_Cursor_Handler")>]
abstract member GetChildrenCursor : Android.Database.ICursor -> Android.Database.ICursor

Parameters

groupCursor
ICursor

The cursor pointing to the group whose children cursor should be returned

Returns

The cursor for the children of a particular group, or null.

Attributes

Remarks

Gets the Cursor for the children at the given group. Subclasses must implement this method to return the children data for a particular group.

If you want to asynchronously query a provider to prevent blocking the UI, it is possible to return null and at a later time call #setChildrenCursor(int, Cursor).

It is your responsibility to manage this Cursor through the Activity lifecycle. It is a good idea to use Activity#managedQuery which will handle this for you. In some situations, the adapter will deactivate the Cursor on its own, but this will not always be the case, so please ensure the Cursor is properly managed.

Java documentation for android.widget.CursorTreeAdapter.getChildrenCursor(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