CursorAdapter 생성자

정의

오버로드

Name Description
CursorAdapter(Context, ICursor)
사용되지 않음.

항상 자동 다시 쿼리를 사용하도록 설정하는 생성자입니다.

CursorAdapter(IntPtr, JniHandleOwnership)

JNI 개체의 관리되는 표현을 만들 때 사용되는 생성자입니다. 런타임에서 호출합니다.

CursorAdapter(Context, ICursor, CursorAdapterFlags)

권장 생성자입니다.

CursorAdapter(Context, ICursor, Boolean)

자동 다시 쿼리를 제어할 수 있는 생성자입니다.

CursorAdapter(Context, ICursor)

주의

deprecated

항상 자동 다시 쿼리를 사용하도록 설정하는 생성자입니다.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/database/Cursor;)V", "")]
[System.Obsolete("deprecated")]
public CursorAdapter(Android.Content.Context? context, Android.Database.ICursor? c);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/database/Cursor;)V", "")>]
[<System.Obsolete("deprecated")>]
new Android.Widget.CursorAdapter : Android.Content.Context * Android.Database.ICursor -> Android.Widget.CursorAdapter

매개 변수

context
Context

컨텍스트

c
ICursor

데이터를 가져올 커서입니다.

특성

설명

항상 자동 다시 쿼리를 사용하도록 설정하는 생성자입니다.

이 멤버는 더 이상 사용되지 않습니다. 이 옵션은 애플리케이션의 UI 스레드에서 커서 쿼리가 수행되므로 응답성이 저하되거나 애플리케이션이 응답하지 않는 오류가 발생할 수 있으므로 권장되지 않습니다. 대신 .android.app.LoaderManagerandroid.content.CursorLoader

에 대한 android.widget.CursorAdapter.CursorAdapter(android.content.Context, android.database.Cursor)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

CursorAdapter(IntPtr, JniHandleOwnership)

JNI 개체의 관리되는 표현을 만들 때 사용되는 생성자입니다. 런타임에서 호출합니다.

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

매개 변수

javaReference
IntPtr

nativeint

IntPtrJava JNI(Native Interface) 개체 참조를 포함하는 개체입니다.

transfer
JniHandleOwnership

JniHandleOwnership처리 방법을 나타내는 AjavaReference

설명

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

CursorAdapter(Context, ICursor, CursorAdapterFlags)

권장 생성자입니다.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/database/Cursor;I)V", "")]
public CursorAdapter(Android.Content.Context? context, Android.Database.ICursor? c, Android.Widget.CursorAdapterFlags flags);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/database/Cursor;I)V", "")>]
new Android.Widget.CursorAdapter : Android.Content.Context * Android.Database.ICursor * Android.Widget.CursorAdapterFlags -> Android.Widget.CursorAdapter

매개 변수

context
Context

컨텍스트

c
ICursor

데이터를 가져올 커서입니다.

flags
CursorAdapterFlags

어댑터의 동작을 확인하는 데 사용되는 플래그입니다. 의 조합 #FLAG_AUTO_REQUERY 일 수 있습니다.#FLAG_REGISTER_CONTENT_OBSERVER

특성

설명

권장 생성자입니다.

에 대한 android.widget.CursorAdapter.CursorAdapter(android.content.Context, android.database.Cursor, int)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상

CursorAdapter(Context, ICursor, Boolean)

자동 다시 쿼리를 제어할 수 있는 생성자입니다.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/database/Cursor;Z)V", "")]
public CursorAdapter(Android.Content.Context? context, Android.Database.ICursor? c, bool autoRequery);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Landroid/database/Cursor;Z)V", "")>]
new Android.Widget.CursorAdapter : Android.Content.Context * Android.Database.ICursor * bool -> Android.Widget.CursorAdapter

매개 변수

context
Context

컨텍스트

c
ICursor

데이터를 가져올 커서입니다.

autoRequery
Boolean

true이면 어댑터는 변경될 때마다 커서에서 requery()를 호출하므로 최신 데이터가 항상 표시됩니다. 여기서 true를 사용하는 것은 권장되지 않습니다.

특성

설명

자동 다시 쿼리를 제어할 수 있는 생성자입니다. 대신 사용하지 #CursorAdapter(Context, Cursor, int)않는 것이 좋습니다. 이 생성자를 #FLAG_REGISTER_CONTENT_OBSERVER 사용하는 경우 항상 설정됩니다.

에 대한 android.widget.CursorAdapter.CursorAdapter(android.content.Context, android.database.Cursor, boolean)Java 설명서

이 페이지의 일부는 만들고 공유한 작업을 기반으로 하며 에 설명된 조건에 따라 사용됩니다.

적용 대상