Compartir a través de


DocumentsProvider.QueryRecentDocuments Method

Definition

Overloads

QueryRecentDocuments(String, String[], Bundle, CancellationSignal)

Return recently modified documents under the requested root.

QueryRecentDocuments(String, String[])

Return recently modified documents under the requested root.

QueryRecentDocuments(String, String[], Bundle, CancellationSignal)

Return recently modified documents under the requested root.

[Android.Runtime.Register("queryRecentDocuments", "(Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "GetQueryRecentDocuments_Ljava_lang_String_arrayLjava_lang_String_Landroid_os_Bundle_Landroid_os_CancellationSignal_Handler", ApiSince=29)]
public virtual Android.Database.ICursor? QueryRecentDocuments (string rootId, string[]? projection, Android.OS.Bundle? queryArgs, Android.OS.CancellationSignal? signal);
[<Android.Runtime.Register("queryRecentDocuments", "(Ljava/lang/String;[Ljava/lang/String;Landroid/os/Bundle;Landroid/os/CancellationSignal;)Landroid/database/Cursor;", "GetQueryRecentDocuments_Ljava_lang_String_arrayLjava_lang_String_Landroid_os_Bundle_Landroid_os_CancellationSignal_Handler", ApiSince=29)>]
abstract member QueryRecentDocuments : string * string[] * Android.OS.Bundle * Android.OS.CancellationSignal -> Android.Database.ICursor
override this.QueryRecentDocuments : string * string[] * Android.OS.Bundle * Android.OS.CancellationSignal -> Android.Database.ICursor

Parameters

rootId
String
projection
String[]

list of Document columns to put into the cursor. If null all supported columns should be included.

queryArgs
Bundle

the extra query arguments.

signal
CancellationSignal

used by the caller to signal if the request should be cancelled. May be null.

Returns

Attributes

Remarks

Return recently modified documents under the requested root. This will only be called for roots that advertise Root#FLAG_SUPPORTS_RECENTS. The returned documents should be sorted by Document#COLUMN_LAST_MODIFIED in descending order of the most recently modified documents.

If this method is overriden by the concrete DocumentsProvider and ContentResolver#QUERY_ARG_LIMIT is specified with a nonnegative int under queryArgs, the result will be limited by that number and ContentResolver#QUERY_ARG_LIMIT will be specified under ContentResolver#EXTRA_HONORED_ARGS. Otherwise, a default 64 limit will be used and no QUERY_ARG* will be specified under ContentResolver#EXTRA_HONORED_ARGS.

Recent documents do not support change notifications.

Java documentation for android.provider.DocumentsProvider.queryRecentDocuments(java.lang.String, java.lang.String[], android.os.Bundle, android.os.CancellationSignal).

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

QueryRecentDocuments(String, String[])

Return recently modified documents under the requested root.

[Android.Runtime.Register("queryRecentDocuments", "(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;", "GetQueryRecentDocuments_Ljava_lang_String_arrayLjava_lang_String_Handler")]
public virtual Android.Database.ICursor? QueryRecentDocuments (string? rootId, string[]? projection);
[<Android.Runtime.Register("queryRecentDocuments", "(Ljava/lang/String;[Ljava/lang/String;)Landroid/database/Cursor;", "GetQueryRecentDocuments_Ljava_lang_String_arrayLjava_lang_String_Handler")>]
abstract member QueryRecentDocuments : string * string[] -> Android.Database.ICursor
override this.QueryRecentDocuments : string * string[] -> Android.Database.ICursor

Parameters

rootId
String
projection
String[]

list of Document columns to put into the cursor. If null all supported columns should be included.

Returns

Attributes

Exceptions

Remarks

Return recently modified documents under the requested root. This will only be called for roots that advertise Root#FLAG_SUPPORTS_RECENTS. The returned documents should be sorted by Document#COLUMN_LAST_MODIFIED in descending order, and limited to only return the 64 most recently modified documents.

Recent documents do not support change notifications.

Java documentation for android.provider.DocumentsProvider.queryRecentDocuments(java.lang.String, 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.

See also

Applies to