共用方式為


CloudMediaProvider.OnQueryAlbums(Bundle) Method

Definition

Returns a cursor representing all album items in the media collection optionally filtered by extras and sorted in reverse chronological order of CloudMediaProviderContract.AlbumColumns#DATE_TAKEN_MILLIS, i.

[Android.Runtime.Register("onQueryAlbums", "(Landroid/os/Bundle;)Landroid/database/Cursor;", "GetOnQueryAlbums_Landroid_os_Bundle_Handler", ApiSince=33)]
public virtual Android.Database.ICursor OnQueryAlbums (Android.OS.Bundle extras);
[<Android.Runtime.Register("onQueryAlbums", "(Landroid/os/Bundle;)Landroid/database/Cursor;", "GetOnQueryAlbums_Landroid_os_Bundle_Handler", ApiSince=33)>]
abstract member OnQueryAlbums : Android.OS.Bundle -> Android.Database.ICursor
override this.OnQueryAlbums : Android.OS.Bundle -> Android.Database.ICursor

Parameters

extras
Bundle

containing keys to filter album items: <ul> <li> CloudMediaProviderContract#EXTRA_SYNC_GENERATION<li> CloudMediaProviderContract#EXTRA_PAGE_TOKEN<li> CloudMediaProviderContract#EXTRA_PAGE_SIZE</ul>

Returns

cursor representing album items containing all CloudMediaProviderContract.AlbumColumns columns

Attributes

Remarks

Returns a cursor representing all album items in the media collection optionally filtered by extras and sorted in reverse chronological order of CloudMediaProviderContract.AlbumColumns#DATE_TAKEN_MILLIS, i.e. most recent items first.

The cloud media provider must set the CloudMediaProviderContract#EXTRA_MEDIA_COLLECTION_ID as part of the returned Cursor#setExtrasBundle. Not setting this is an error and invalidates the returned Cursor.

If the provider handled any filters in extras, it must add the key to the ContentResolver#EXTRA_HONORED_ARGS as part of the returned Cursor#setExtrasBundle.

Java documentation for android.provider.CloudMediaProvider.onQueryAlbums(android.os.Bundle).

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