Udostępnij za pośrednictwem


CursorWindow Constructors

Definition

Overloads

CursorWindow(Boolean)
Obsolete.

Creates a new empty cursor window.

CursorWindow(String)

Creates a new empty cursor window and gives it a name.

CursorWindow(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

CursorWindow(String, Int64)

Creates a new empty cursor window and gives it a name.

CursorWindow(Boolean)

Caution

deprecated

Creates a new empty cursor window.

[Android.Runtime.Register(".ctor", "(Z)V", "")]
[System.Obsolete("deprecated")]
public CursorWindow (bool localWindow);
[<Android.Runtime.Register(".ctor", "(Z)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Database.CursorWindow : bool -> Android.Database.CursorWindow

Parameters

localWindow
Boolean

True if this window will be used in this process only, false if it might be sent to another processes. This argument is ignored.

Attributes

Remarks

Creates a new empty cursor window.

The cursor initially has no rows or columns. Call #setNumColumns(int) to set the number of columns before adding any rows to the cursor.

This member is deprecated. There is no longer a distinction between local and remote cursor windows. Use the #CursorWindow(String) constructor instead.

Java documentation for android.database.CursorWindow.CursorWindow(boolean).

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

CursorWindow(String)

Creates a new empty cursor window and gives it a name.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public CursorWindow (string? name);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.Database.CursorWindow : string -> Android.Database.CursorWindow

Parameters

name
String

The name of the cursor window, or null if none.

Attributes

Remarks

Creates a new empty cursor window and gives it a name.

The cursor initially has no rows or columns. Call #setNumColumns(int) to set the number of columns before adding any rows to the cursor.

Java documentation for android.database.CursorWindow.CursorWindow(java.lang.String).

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

CursorWindow(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected CursorWindow (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Database.CursorWindow : nativeint * Android.Runtime.JniHandleOwnership -> Android.Database.CursorWindow

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

CursorWindow(String, Int64)

Creates a new empty cursor window and gives it a name.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;J)V", "", ApiSince=28)]
public CursorWindow (string? name, long windowSizeBytes);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;J)V", "", ApiSince=28)>]
new Android.Database.CursorWindow : string * int64 -> Android.Database.CursorWindow

Parameters

name
String

The name of the cursor window, or null if none.

windowSizeBytes
Int64

Size of cursor window in bytes.

Attributes

Remarks

Creates a new empty cursor window and gives it a name.

The cursor initially has no rows or columns. Call #setNumColumns(int) to set the number of columns before adding any rows to the cursor.

Java documentation for android.database.CursorWindow.CursorWindow(java.lang.String, long).

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