CloudMediaProvider.OnQueryDeletedMedia(Bundle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns a Cursor
representing all deleted media items in the entire media collection
within the current provider version as returned by #onGetMediaCollectionInfo
.
[Android.Runtime.Register("onQueryDeletedMedia", "(Landroid/os/Bundle;)Landroid/database/Cursor;", "GetOnQueryDeletedMedia_Landroid_os_Bundle_Handler", ApiSince=33)]
public abstract Android.Database.ICursor OnQueryDeletedMedia (Android.OS.Bundle extras);
[<Android.Runtime.Register("onQueryDeletedMedia", "(Landroid/os/Bundle;)Landroid/database/Cursor;", "GetOnQueryDeletedMedia_Landroid_os_Bundle_Handler", ApiSince=33)>]
abstract member OnQueryDeletedMedia : Android.OS.Bundle -> Android.Database.ICursor
Parameters
- extras
- Bundle
containing keys to filter deleted media items:
<ul>
<li> CloudMediaProviderContract#EXTRA_SYNC_GENERATION
<li> CloudMediaProviderContract#EXTRA_PAGE_TOKEN
</ul>
Returns
cursor representing deleted media items containing just the
CloudMediaProviderContract.MediaColumns#ID
column
- Attributes
Remarks
Returns a Cursor
representing all deleted media items in the entire media collection within the current provider version as returned by #onGetMediaCollectionInfo
. These items can be optionally filtered by extras
.
The cloud media provider must set the CloudMediaProviderContract#EXTRA_MEDIA_COLLECTION_ID
as part of the returned Cursor#setExtras
Bundle
. 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#setExtras
Bundle
.
Java documentation for android.provider.CloudMediaProvider.onQueryDeletedMedia(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.