MediaMetadataCompat.Builder

public static final class MediaMetadataCompat.Builder
extends Object

java.lang.Object
   ↳ android.support.v4.media.MediaMetadataCompat.Builder


Use to build MediaMetadata objects. The system defined metadata keys must use the appropriate data type.

Summary

Public constructors

Builder()

Create an empty Builder.

Builder(MediaMetadataCompat source)

Create a Builder using a MediaMetadataCompat instance to set the initial values.

Public methods

MediaMetadataCompat build()

Creates a MediaMetadataCompat instance with the specified fields.

MediaMetadataCompat.Builder putBitmap(String key, Bitmap value)

Put a Bitmap into the metadata.

MediaMetadataCompat.Builder putLong(String key, long value)

Put a long value into the metadata.

MediaMetadataCompat.Builder putRating(String key, RatingCompat value)

Put a RatingCompat into the metadata.

MediaMetadataCompat.Builder putString(String key, String value)

Put a String value into the metadata.

MediaMetadataCompat.Builder putText(String key, CharSequence value)

Put a CharSequence value into the metadata.

Inherited methods