MediaDescriptionCompat.Builder


class MediaDescriptionCompat.Builder


Builder for MediaDescriptionCompat objects.

Summary

Public constructors

Creates an initially empty builder.

Public functions

MediaDescriptionCompat!

Creates a MediaDescriptionCompat instance with the specified fields.

MediaDescriptionCompat.Builder!

Sets the description.

MediaDescriptionCompat.Builder!
setExtras(extras: Bundle?)

Sets a bundle of extras.

MediaDescriptionCompat.Builder!

Sets the icon.

MediaDescriptionCompat.Builder!
setIconUri(iconUri: Uri?)

Sets the icon uri.

MediaDescriptionCompat.Builder!
setMediaId(mediaId: String?)

Sets the media id.

MediaDescriptionCompat.Builder!
setMediaUri(mediaUri: Uri?)

Sets the media uri.

MediaDescriptionCompat.Builder!

Sets the subtitle.

MediaDescriptionCompat.Builder!

Sets the title.

Public constructors

Builder

Added in 1.1.0
Builder()

Creates an initially empty builder.

Public functions

build

Added in 1.1.0
fun build(): MediaDescriptionCompat!

Creates a MediaDescriptionCompat instance with the specified fields.

Returns
MediaDescriptionCompat!

A MediaDescriptionCompat instance.

setDescription

Added in 1.1.0
fun setDescription(description: CharSequence?): MediaDescriptionCompat.Builder!

Sets the description.

Parameters
description: CharSequence?

A description suitable for display to the user or null.

setExtras

Added in 1.1.0
fun setExtras(extras: Bundle?): MediaDescriptionCompat.Builder!

Sets a bundle of extras.

Parameters
extras: Bundle?

The extras to include with this description or null.

setIconBitmap

Added in 1.1.0
fun setIconBitmap(icon: Bitmap?): MediaDescriptionCompat.Builder!

Sets the icon.

Parameters
icon: Bitmap?

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

setIconUri

Added in 1.1.0
fun setIconUri(iconUri: Uri?): MediaDescriptionCompat.Builder!

Sets the icon uri.

Parameters
iconUri: Uri?

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

setMediaId

Added in 1.1.0
fun setMediaId(mediaId: String?): MediaDescriptionCompat.Builder!

Sets the media id.

Parameters
mediaId: String?

The unique id for the item or null.

setMediaUri

Added in 1.1.0
fun setMediaUri(mediaUri: Uri?): MediaDescriptionCompat.Builder!

Sets the media uri.

Parameters
mediaUri: Uri?

The content's Uri for the item or null.

setSubtitle

Added in 1.1.0
fun setSubtitle(subtitle: CharSequence?): MediaDescriptionCompat.Builder!

Sets the subtitle.

Parameters
subtitle: CharSequence?

A subtitle suitable for display to the user or null.

setTitle

Added in 1.1.0
fun setTitle(title: CharSequence?): MediaDescriptionCompat.Builder!

Sets the title.

Parameters
title: CharSequence?

A title suitable for display to the user or null.