MediaDescriptionCompat.Builder


public final class MediaDescriptionCompat.Builder


Builder for MediaDescriptionCompat objects.

Summary

Public constructors

Creates an initially empty builder.

Public methods

MediaDescriptionCompat

Creates a MediaDescriptionCompat instance with the specified fields.

MediaDescriptionCompat.Builder

Sets the description.

MediaDescriptionCompat.Builder

Sets a bundle of extras.

MediaDescriptionCompat.Builder

Sets the icon.

MediaDescriptionCompat.Builder

Sets the icon uri.

MediaDescriptionCompat.Builder

Sets the media id.

MediaDescriptionCompat.Builder

Sets the media uri.

MediaDescriptionCompat.Builder

Sets the subtitle.

MediaDescriptionCompat.Builder

Sets the title.

Public constructors

Builder

Added in 1.1.0
public Builder()

Creates an initially empty builder.

Public methods

build

Added in 1.1.0
public MediaDescriptionCompat build()

Creates a MediaDescriptionCompat instance with the specified fields.

Returns
MediaDescriptionCompat

A MediaDescriptionCompat instance.

setDescription

Added in 1.1.0
public MediaDescriptionCompat.Builder setDescription(@Nullable CharSequence description)

Sets the description.

Parameters
@Nullable CharSequence description

A description suitable for display to the user or null.

setExtras

Added in 1.1.0
public MediaDescriptionCompat.Builder setExtras(@Nullable Bundle extras)

Sets a bundle of extras.

Parameters
@Nullable Bundle extras

The extras to include with this description or null.

setIconBitmap

Added in 1.1.0
public MediaDescriptionCompat.Builder setIconBitmap(@Nullable Bitmap icon)

Sets the icon.

Parameters
@Nullable Bitmap icon

A Bitmap icon suitable for display to the user or null.

setIconUri

Added in 1.1.0
public MediaDescriptionCompat.Builder setIconUri(@Nullable Uri iconUri)

Sets the icon uri.

Parameters
@Nullable Uri iconUri

A Uri for an icon suitable for display to the user or null.

setMediaId

Added in 1.1.0
public MediaDescriptionCompat.Builder setMediaId(@Nullable String mediaId)

Sets the media id.

Parameters
@Nullable String mediaId

The unique id for the item or null.

setMediaUri

Added in 1.1.0
public MediaDescriptionCompat.Builder setMediaUri(@Nullable Uri mediaUri)

Sets the media uri.

Parameters
@Nullable Uri mediaUri

The content's Uri for the item or null.

setSubtitle

Added in 1.1.0
public MediaDescriptionCompat.Builder setSubtitle(@Nullable CharSequence subtitle)

Sets the subtitle.

Parameters
@Nullable CharSequence subtitle

A subtitle suitable for display to the user or null.

setTitle

Added in 1.1.0
public MediaDescriptionCompat.Builder setTitle(@Nullable CharSequence title)

Sets the title.

Parameters
@Nullable CharSequence title

A title suitable for display to the user or null.