CloudMediaProviderContract.Capabilities


public static final class CloudMediaProviderContract.Capabilities
extends Object implements Parcelable

java.lang.Object
   ↳ 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

class CloudMediaProviderContract.Capabilities.Builder

Builder for a CloudMediaProviderContract.Capabilities object. 

Inherited constants

Fields

public static final Creator<CloudMediaProviderContract.Capabilities> CREATOR

Implemented for Parcelable

Public methods

int describeContents()

Implemented for Parcelable

boolean isMediaCategoriesEnabled()

If the CloudMediaProvider supports MediaCategories.

boolean isSearchEnabled()

If the CloudMediaProvider supports Search functionality.

void writeToParcel(Parcel dest, int flags)

Implemented for Parcelable

Inherited methods

Fields

CREATOR

Added in R Extensions 16
public static final Creator<CloudMediaProviderContract.Capabilities> CREATOR

Implemented for Parcelable

Public methods

describeContents

public int describeContents ()

Implemented for Parcelable

Returns
int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or CONTENTS_FILE_DESCRIPTOR

isMediaCategoriesEnabled

Added in R Extensions 16
public boolean isMediaCategoriesEnabled ()

If the CloudMediaProvider supports MediaCategories. In order for MediaCategories to be enabled the CloudMediaProvider needs to implement the following APIs:

Returns
boolean true if media categories are enabled for this CloudMediaProvider.

isSearchEnabled

Added in R Extensions 16
public boolean isSearchEnabled ()

If the CloudMediaProvider supports Search functionality. In order for search to be enabled the CloudMediaProvider needs to implement the following APIs:

Returns
boolean true if search is enabled for this CloudMediaProvider.

writeToParcel

public void writeToParcel (Parcel dest, 
                int flags)

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.PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of Parcelable.PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES