Share via


AbstractWindowedCursor.SetWindow(CursorWindow) Method

Definition

Sets a new cursor window for the cursor to use.

[Android.Runtime.Register("setWindow", "(Landroid/database/CursorWindow;)V", "GetSetWindow_Landroid_database_CursorWindow_Handler")]
public virtual void SetWindow (Android.Database.CursorWindow? window);
[<Android.Runtime.Register("setWindow", "(Landroid/database/CursorWindow;)V", "GetSetWindow_Landroid_database_CursorWindow_Handler")>]
abstract member SetWindow : Android.Database.CursorWindow -> unit
override this.SetWindow : Android.Database.CursorWindow -> unit

Parameters

window
CursorWindow

The new cursor window, typically a remote cursor window.

Attributes

Remarks

Sets a new cursor window for the cursor to use.

The cursor takes ownership of the provided cursor window; the cursor window will be closed when the cursor is closed or when the cursor adopts a new cursor window.

If the cursor previously had a cursor window, then it is closed when the new cursor window is assigned.

Java documentation for android.database.AbstractWindowedCursor.setWindow(android.database.CursorWindow).

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