Język

CloudMediaProviderContract.Capabilities.Builder.SetAlbumsAsCategoryEnabled Method

Definition

Enables or disables reporting 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

This builder, to allow further configuration calls.

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 setting has no effect if media categories are not enabled.

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