Language

CloudMediaProviderContract.Capabilities.IsAlbumsAsCategoryEnabled Property

Definition

Gets whether the provider advertises 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 this capability is enabled; otherwise, false.

Attributes

Remarks

When this capability and IsMediaCategoriesEnabled are both enabled, OnQueryAlbums(Bundle) is no longer called to synchronize user albums. A category with type MediaCategoryTypeUserAlbums is expected in the results of OnQueryMediaCategories(String, Bundle, CancellationSignal). If no such category is returned, there is no data for custom albums.

This capability has no effect if media categories are not enabled.

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