Builder


class Builder
kotlin.Any
   ↳ android.provider.CloudMediaProviderContract.Capabilities.Builder

Builder for a CloudMediaProviderContract.Capabilities object.

Summary

Public constructors

Public methods
CloudMediaProviderContract.Capabilities

Create a new CloudMediaProviderContract.Capabilities object with the current builder's Capabilities.

CloudMediaProviderContract.Capabilities.Builder

The MediaCollections capability informs that collection related APIs are supported and can be invoked on this provider.

CloudMediaProviderContract.Capabilities.Builder

The SearchEnabled capability informs that search related APIs are supported and can be invoked on this provider.

Public constructors

Builder

Builder()

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.