CloudMediaProvider.OnGetMediaCollectionInfo(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 metadata about the media collection itself.
[Android.Runtime.Register("onGetMediaCollectionInfo", "(Landroid/os/Bundle;)Landroid/os/Bundle;", "GetOnGetMediaCollectionInfo_Landroid_os_Bundle_Handler", ApiSince=33)]
public abstract Android.OS.Bundle OnGetMediaCollectionInfo (Android.OS.Bundle extras);
[<Android.Runtime.Register("onGetMediaCollectionInfo", "(Landroid/os/Bundle;)Landroid/os/Bundle;", "GetOnGetMediaCollectionInfo_Landroid_os_Bundle_Handler", ApiSince=33)>]
abstract member OnGetMediaCollectionInfo : Android.OS.Bundle -> Android.OS.Bundle
Parameters
- extras
- Bundle
containing keys to filter result:
<ul>
<li> CloudMediaProviderContract#EXTRA_ALBUM_ID
</ul>
Returns
Bundle
containing CloudMediaProviderContract.MediaCollectionInfo
<ul>
<li> CloudMediaProviderContract.MediaCollectionInfo#MEDIA_COLLECTION_ID
<li> CloudMediaProviderContract.MediaCollectionInfo#LAST_MEDIA_SYNC_GENERATION
<li> CloudMediaProviderContract.MediaCollectionInfo#ACCOUNT_NAME
<li> CloudMediaProviderContract.MediaCollectionInfo#ACCOUNT_CONFIGURATION_INTENT
</ul>
- Attributes
Remarks
Returns metadata about the media collection itself.
This is useful for the OS to determine if its cache of media items in the collection is still valid and if a full or incremental sync is required with #onQueryMedia
.
This method might be called by the OS frequently and is performance critical, hence it should avoid long running operations.
If the provider handled any filters in extras
, it must add the key to the ContentResolver#EXTRA_HONORED_ARGS
as part of the returned 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.