Most visited

Recently visited

MediaDescriptionCompat.Builder

public static final class MediaDescriptionCompat.Builder
extends Object

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


MediaDescriptionCompat对象的生成器。

Summary

Public constructors

MediaDescriptionCompat.Builder()

创建一个初始为空的构建器。

Public methods

MediaDescriptionCompat build()

用指定的字段创建一个 MediaDescriptionCompat实例。

MediaDescriptionCompat.Builder setDescription(CharSequence description)

设置描述。

MediaDescriptionCompat.Builder setExtras(Bundle extras)

设置一系列附加功能。

MediaDescriptionCompat.Builder setIconBitmap(Bitmap icon)

设置图标。

MediaDescriptionCompat.Builder setIconUri(Uri iconUri)

设置图标uri。

MediaDescriptionCompat.Builder setMediaId(String mediaId)

设置媒体ID。

MediaDescriptionCompat.Builder setMediaUri(Uri mediaUri)

设置媒体uri。

MediaDescriptionCompat.Builder setSubtitle(CharSequence subtitle)

设置字幕。

MediaDescriptionCompat.Builder setTitle(CharSequence title)

设置标题。

Inherited methods

From class java.lang.Object

Public constructors

MediaDescriptionCompat.Builder

MediaDescriptionCompat.Builder ()

创建一个初始为空的构建器。

Public methods

build

MediaDescriptionCompat build ()

用指定的字段创建一个 MediaDescriptionCompat实例。

Returns
MediaDescriptionCompat A MediaDescriptionCompat instance.

setDescription

MediaDescriptionCompat.Builder setDescription (CharSequence description)

设置描述。

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

setExtras

MediaDescriptionCompat.Builder setExtras (Bundle extras)

设置一系列附加功能。

Parameters
extras Bundle: The extras to include with this description or null.
Returns
MediaDescriptionCompat.Builder this

setIconBitmap

MediaDescriptionCompat.Builder setIconBitmap (Bitmap icon)

设置图标。

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

setIconUri

MediaDescriptionCompat.Builder setIconUri (Uri iconUri)

设置图标uri。

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

setMediaId

MediaDescriptionCompat.Builder setMediaId (String mediaId)

设置媒体ID。

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

setMediaUri

MediaDescriptionCompat.Builder setMediaUri (Uri mediaUri)

设置媒体uri。

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

setSubtitle

MediaDescriptionCompat.Builder setSubtitle (CharSequence subtitle)

设置字幕。

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

setTitle

MediaDescriptionCompat.Builder setTitle (CharSequence title)

设置标题。

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

Hooray!