Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e295a15d
authored
May 07, 2021
by
samrobinson
Committed by
Oliver Woodman
May 10, 2021
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Add javadoc to the MediaMetadata setters.
#minor-release PiperOrigin-RevId: 372549185
parent
1c8f91c1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
1 deletions
library/common/src/main/java/com/google/android/exoplayer2/MediaMetadata.java
library/common/src/main/java/com/google/android/exoplayer2/MediaMetadata.java
View file @
e295a15d
...
...
@@ -62,52 +62,65 @@ public final class MediaMetadata implements Bundleable {
this
.
overallRating
=
mediaMetadata
.
overallRating
;
}
/** Sets the
optional track
title. */
/** Sets the title. */
public
Builder
setTitle
(
@Nullable
CharSequence
title
)
{
this
.
title
=
title
;
return
this
;
}
/** Sets the artist. */
public
Builder
setArtist
(
@Nullable
CharSequence
artist
)
{
this
.
artist
=
artist
;
return
this
;
}
/** Sets the album title. */
public
Builder
setAlbumTitle
(
@Nullable
CharSequence
albumTitle
)
{
this
.
albumTitle
=
albumTitle
;
return
this
;
}
/** Sets the album artist. */
public
Builder
setAlbumArtist
(
@Nullable
CharSequence
albumArtist
)
{
this
.
albumArtist
=
albumArtist
;
return
this
;
}
/** Sets the display title. */
public
Builder
setDisplayTitle
(
@Nullable
CharSequence
displayTitle
)
{
this
.
displayTitle
=
displayTitle
;
return
this
;
}
/**
* Sets the subtitle.
*
* <p>This is the secondary title of the media, unrelated to closed captions.
*/
public
Builder
setSubtitle
(
@Nullable
CharSequence
subtitle
)
{
this
.
subtitle
=
subtitle
;
return
this
;
}
/** Sets the description. */
public
Builder
setDescription
(
@Nullable
CharSequence
description
)
{
this
.
description
=
description
;
return
this
;
}
/** Sets the media {@link Uri}. */
public
Builder
setMediaUri
(
@Nullable
Uri
mediaUri
)
{
this
.
mediaUri
=
mediaUri
;
return
this
;
}
/** Sets the user {@link Rating}. */
public
Builder
setUserRating
(
@Nullable
Rating
userRating
)
{
this
.
userRating
=
userRating
;
return
this
;
}
/** Sets the overall {@link Rating}. */
public
Builder
setOverallRating
(
@Nullable
Rating
overallRating
)
{
this
.
overallRating
=
overallRating
;
return
this
;
...
...
@@ -160,15 +173,29 @@ public final class MediaMetadata implements Bundleable {
/** Empty {@link MediaMetadata}. */
public
static
final
MediaMetadata
EMPTY
=
new
MediaMetadata
.
Builder
().
build
();
/** Optional title. */
@Nullable
public
final
CharSequence
title
;
/** Optional artist. */
@Nullable
public
final
CharSequence
artist
;
/** Optional album title. */
@Nullable
public
final
CharSequence
albumTitle
;
/** Optional album artist. */
@Nullable
public
final
CharSequence
albumArtist
;
/** Optional display title. */
@Nullable
public
final
CharSequence
displayTitle
;
/**
* Optional subtitle.
*
* <p>This is the secondary title of the media, unrelated to closed captions.
*/
@Nullable
public
final
CharSequence
subtitle
;
/** Optional description. */
@Nullable
public
final
CharSequence
description
;
/** Optional media {@link Uri}. */
@Nullable
public
final
Uri
mediaUri
;
/** Optional user {@link Rating}. */
@Nullable
public
final
Rating
userRating
;
/** Optional overall {@link Rating}. */
@Nullable
public
final
Rating
overallRating
;
private
MediaMetadata
(
Builder
builder
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment