Builder
class Builder
kotlin.Any | |
↳ | android.provider.CloudMediaProviderContract.Capabilities.Builder |
Builder for a CloudMediaProviderContract.Capabilities
object.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
CloudMediaProviderContract.Capabilities |
build() Create a new |
CloudMediaProviderContract.Capabilities.Builder |
setMediaCollectionsEnabled(enabled: Boolean) The MediaCollections capability informs that collection related APIs are supported and can be invoked on this provider. |
CloudMediaProviderContract.Capabilities.Builder |
setSearchEnabled(enabled: Boolean) The SearchEnabled capability informs that search related APIs are supported and can be invoked on this provider. |
Public constructors
Public methods
build
fun build(): CloudMediaProviderContract.Capabilities
Create a new CloudMediaProviderContract.Capabilities
object with the current builder's Capabilities.
Return | |
---|---|
CloudMediaProviderContract.Capabilities |
This value cannot be null . |
setMediaCollectionsEnabled
fun setMediaCollectionsEnabled(enabled: Boolean): CloudMediaProviderContract.Capabilities.Builder
The MediaCollections capability informs that collection related APIs are supported and can be invoked on this provider.
Parameters | |
---|---|
enabled |
Boolean: true if this capability is supported, the default value is false. |
Return | |
---|---|
CloudMediaProviderContract.Capabilities.Builder |
This value cannot be null . |
setSearchEnabled
fun setSearchEnabled(enabled: Boolean): CloudMediaProviderContract.Capabilities.Builder
The SearchEnabled capability informs that search related APIs are supported and can be invoked on this provider.
Parameters | |
---|---|
enabled |
Boolean: true if this capability is supported, the default value is false. |
Return | |
---|---|
CloudMediaProviderContract.Capabilities.Builder |
This value cannot be null . |