Android APIs
public static final class

MediaDescriptionCompat.Builder

extends Object
java.lang.Object
   ↳ android.support.v4.media.MediaDescriptionCompat.Builder

Class Overview

Builder for MediaDescriptionCompat objects.

Summary

Public Constructors
MediaDescriptionCompat.Builder()
Creates an initially empty builder.
Public Methods
MediaDescriptionCompat build()
Creates a MediaDescriptionCompat instance with the specified fields.
MediaDescriptionCompat.Builder setDescription(CharSequence description)
Sets the description.
MediaDescriptionCompat.Builder setExtras(Bundle extras)
Sets a bundle of extras.
MediaDescriptionCompat.Builder setIconBitmap(Bitmap icon)
Sets the icon.
MediaDescriptionCompat.Builder setIconUri(Uri iconUri)
Sets the icon uri.
MediaDescriptionCompat.Builder setMediaId(String mediaId)
Sets the media id.
MediaDescriptionCompat.Builder setSubtitle(CharSequence subtitle)
Sets the subtitle.
MediaDescriptionCompat.Builder setTitle(CharSequence title)
Sets the title.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public MediaDescriptionCompat.Builder ()

Creates an initially empty builder.

Public Methods

public MediaDescriptionCompat build ()

Creates a MediaDescriptionCompat instance with the specified fields.

Returns
  • A MediaDescriptionCompat instance.

public MediaDescriptionCompat.Builder setDescription (CharSequence description)

Sets the description.

Parameters
description A description suitable for display to the user or null.
Returns
  • this

public MediaDescriptionCompat.Builder setExtras (Bundle extras)

Sets a bundle of extras.

Parameters
extras The extras to include with this description or null.
Returns
  • this

public MediaDescriptionCompat.Builder setIconBitmap (Bitmap icon)

Sets the icon.

Parameters
icon A Bitmap icon suitable for display to the user or null.
Returns
  • this

public MediaDescriptionCompat.Builder setIconUri (Uri iconUri)

Sets the icon uri.

Parameters
iconUri A Uri for an icon suitable for display to the user or null.
Returns
  • this

public MediaDescriptionCompat.Builder setMediaId (String mediaId)

Sets the media id.

Parameters
mediaId The unique id for the item or null.
Returns
  • this

public MediaDescriptionCompat.Builder setSubtitle (CharSequence subtitle)

Sets the subtitle.

Parameters
subtitle A subtitle suitable for display to the user or null.
Returns
  • this

public MediaDescriptionCompat.Builder setTitle (CharSequence title)

Sets the title.

Parameters
title A title suitable for display to the user or null.
Returns
  • this