The Android Developer Challenge is back! Submit your idea before December 2.

Builder

class Builder
kotlin.Any
   ↳ android.support.v4.media.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!
setDescription(@Nullable description: CharSequence?)

Sets the description.

MediaDescriptionCompat.Builder!
setExtras(@Nullable extras: Bundle?)

Sets a bundle of extras.

MediaDescriptionCompat.Builder!
setIconBitmap(@Nullable icon: Bitmap?)

Sets the icon.

MediaDescriptionCompat.Builder!
setIconUri(@Nullable iconUri: Uri?)

Sets the icon uri.

MediaDescriptionCompat.Builder!
setMediaId(@Nullable mediaId: String?)

Sets the media id.

MediaDescriptionCompat.Builder!
setMediaUri(@Nullable mediaUri: Uri?)

Sets the media uri.

MediaDescriptionCompat.Builder!
setSubtitle(@Nullable subtitle: CharSequence?)

Sets the subtitle.

MediaDescriptionCompat.Builder!
setTitle(@Nullable title: CharSequence?)

Sets the title.

Public constructors

<init>

Builder()

Creates an initially empty builder.

Public methods

build

fun build(): MediaDescriptionCompat!

Creates a MediaDescriptionCompat instance with the specified fields.

Return
MediaDescriptionCompat!: A MediaDescriptionCompat instance.

setDescription

fun setDescription(@Nullable description: CharSequence?): MediaDescriptionCompat.Builder!

Sets the description.

Parameters
description CharSequence?: A description suitable for display to the user or null.
Return
MediaDescriptionCompat.Builder!: this

setExtras

fun setExtras(@Nullable extras: Bundle?): MediaDescriptionCompat.Builder!

Sets a bundle of extras.

Parameters
extras Bundle?: The extras to include with this description or null.
Return
MediaDescriptionCompat.Builder!: this

setIconBitmap

fun setIconBitmap(@Nullable icon: Bitmap?): MediaDescriptionCompat.Builder!

Sets the icon.

Parameters
icon Bitmap?: A Bitmap icon suitable for display to the user or null.
Return
MediaDescriptionCompat.Builder!: this

setIconUri

fun setIconUri(@Nullable iconUri: Uri?): MediaDescriptionCompat.Builder!

Sets the icon uri.

Parameters
iconUri Uri?: A Uri for an icon suitable for display to the user or null.
Return
MediaDescriptionCompat.Builder!: this

setMediaId

fun setMediaId(@Nullable mediaId: String?): MediaDescriptionCompat.Builder!

Sets the media id.

Parameters
mediaId String?: The unique id for the item or null.
Return
MediaDescriptionCompat.Builder!: this

setMediaUri

fun setMediaUri(@Nullable mediaUri: Uri?): MediaDescriptionCompat.Builder!

Sets the media uri.

Parameters
mediaUri Uri?: The content's Uri for the item or null.
Return
MediaDescriptionCompat.Builder!: this

setSubtitle

fun setSubtitle(@Nullable subtitle: CharSequence?): MediaDescriptionCompat.Builder!

Sets the subtitle.

Parameters
subtitle CharSequence?: A subtitle suitable for display to the user or null.
Return
MediaDescriptionCompat.Builder!: this

setTitle

fun setTitle(@Nullable title: CharSequence?): MediaDescriptionCompat.Builder!

Sets the title.

Parameters
title CharSequence?: A title suitable for display to the user or null.
Return
MediaDescriptionCompat.Builder!: this