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 supports MediaCollections. |
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 |
isMediaCollectionsEnabled
fun isMediaCollectionsEnabled(): Boolean
If the CloudMediaProvider supports MediaCollections. In order for MediaCollections to be enabled the CloudMediaProvider needs to implement the following APIs:
Return | |
---|---|
Boolean |
true if media collections 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