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.
See also:
Summary
Nested classes | |
---|---|
class |
CloudMediaProviderContract.Capabilities.Builder
Builder for a |
Inherited constants |
---|
Fields | |
---|---|
public
static
final
Creator<CloudMediaProviderContract.Capabilities> |
CREATOR
Implemented for |
Public methods | |
---|---|
int
|
describeContents()
Implemented for |
boolean
|
isMediaCollectionsEnabled()
If the CloudMediaProvider supports MediaCollections. |
boolean
|
isSearchEnabled()
If the CloudMediaProvider supports Search functionality. |
void
|
writeToParcel(Parcel dest, int flags)
Implemented for |
Inherited methods | |
---|---|
Fields
CREATOR
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 |
isMediaCollectionsEnabled
public boolean isMediaCollectionsEnabled ()
If the CloudMediaProvider supports MediaCollections. In order for MediaCollections to be enabled the CloudMediaProvider needs to implement the following APIs:
Returns | |
---|---|
boolean |
true if media collections are enabled for this CloudMediaProvider. |
isSearchEnabled
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-12-18 UTC.