Language

CloudMediaProviderContract.Capabilities.Builder.SetAlbumsAsCategoryEnabled Method

Definition

Set true if the CloudMediaProvider will return user albums as a grouped category.

[Android.Runtime.Register("setAlbumsAsCategoryEnabled", "(Z)Landroid/provider/CloudMediaProviderContract$Capabilities$Builder;", "", ApiSince=36)]
public Android.Provider.CloudMediaProviderContract.Capabilities.Builder SetAlbumsAsCategoryEnabled(bool enabled);
[<Android.Runtime.Register("setAlbumsAsCategoryEnabled", "(Z)Landroid/provider/CloudMediaProviderContract$Capabilities$Builder;", "", ApiSince=36)>]
member this.SetAlbumsAsCategoryEnabled : bool -> Android.Provider.CloudMediaProviderContract.Capabilities.Builder

Parameters

enabled
Boolean

true if this capability is supported, the default value is false.

Returns

Attributes

Remarks

Set true 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 CloudMediaProviderContract.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.

Android reference for android.provider.CloudMediaProviderContract.Capabilities.Builder.setAlbumsAsCategoryEnabled.

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