Capabilities
class Capabilities : Parcelable
| kotlin.Any | |
| ↳ | android.provider.CloudMediaProviderContract.Capabilities |
Information about what capabilities a CloudMediaProvider can support. This will be used by the system to inform which APIs should be expected to return data. This object is returned from CloudMediaProvider.onGetCapabilities. This object enumerates which capabilities are provided by the CloudMediaProvider implementation that supplied this object.
Summary
| Nested classes | |
|---|---|
|
Builder for a |
|
| Inherited constants | |
|---|---|
| Public methods | |
|---|---|
| Int |
Implemented for |
| Boolean |
If the CloudMediaProvider will return user albums as a grouped category. |
| Boolean |
If the CloudMediaProvider supports MediaCategories. |
| Boolean |
If the CloudMediaProvider supports Search functionality. |
| Unit |
writeToParcel(dest: Parcel, flags: Int)Implemented for |
| Properties | |
|---|---|
| static Parcelable.Creator<CloudMediaProviderContract.Capabilities!> |
Implemented for |
Public methods
describeContents
fun describeContents(): Int
Implemented for Parcelable
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR |
isAlbumsAsCategoryEnabled
fun isAlbumsAsCategoryEnabled(): Boolean
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.
| Return | |
|---|---|
Boolean |
true if albums will be returned as a MediaCategory. |
isMediaCategoriesEnabled
fun isMediaCategoriesEnabled(): Boolean
If the CloudMediaProvider supports MediaCategories. In order for MediaCategories to be enabled the CloudMediaProvider needs to implement the following APIs:
| Return | |
|---|---|
Boolean |
true if media categories are enabled for this CloudMediaProvider. |
isSearchEnabled
fun isSearchEnabled(): Boolean
If the CloudMediaProvider supports Search functionality. In order for search to be enabled the CloudMediaProvider needs to implement the following APIs:
| Return | |
|---|---|
Boolean |
true if search is enabled for this CloudMediaProvider. |
writeToParcel
fun writeToParcel(
dest: Parcel,
flags: Int
): Unit
Implemented for Parcelable
| Parameters | |
|---|---|
dest |
Parcel: This value cannot be null. |
flags |
Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES |
Properties
CREATOR
static val CREATOR: Parcelable.Creator<CloudMediaProviderContract.Capabilities!>
Implemented for Parcelable