Language

CloudMediaProviderContract.Capabilities.IsAlbumsAsCategoryEnabled Property

Definition

If the CloudMediaProvider will return user albums as a grouped category.

public bool IsAlbumsAsCategoryEnabled { [Android.Runtime.Register("isAlbumsAsCategoryEnabled", "()Z", "", ApiSince=36)] get; }
[<get: Android.Runtime.Register("isAlbumsAsCategoryEnabled", "()Z", "", ApiSince=36)>]
member this.IsAlbumsAsCategoryEnabled : bool

Property Value

true if albums will be returned as a MediaCategory.

Attributes

Remarks

If the CloudMediaProvider will return user albums as a grouped category.

When this capability is enabled, CloudMediaProvider#onQueryAlbums will no longer be called to sync the users albums, and it is expected that a category with the type #MEDIA_CATEGORY_TYPE_USER_ALBUMS will be provided in the CloudMediaProvider#onQueryMediaCategories for providing the user's custom albums. If no such category is returned, then there will be no data for user custom albums.

NOTE: This capability requires the Capabilities#isMediaCategoriesEnabled capability to also be enabled for the CloudMediaProvider. If it is not, this Capability has no effect and will be ignored.

Java documentation for android.provider.CloudMediaProviderContract.Capabilities.isAlbumsAsCategoryEnabled().

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