MediaSession.Callback: Document an example when onAddMediaItems is called.

This commit is contained in:
Niklas Baudy 2022-08-19 15:35:59 +02:00
parent fe0cf05283
commit 31e69d2dac

View File

@ -993,7 +993,7 @@ public class MediaSession {
/**
* Called when a controller requested to add new {@linkplain MediaItem media items} to the
* playlist via one of the {@code Player.addMediaItem(s)} or {@code Player.setMediaItem(s)}
* methods.
* methods. For instance when selecting an item on Android Auto, which should then be played.
*
* <p>Note that the requested {@linkplain MediaItem media items} don't have a {@link
* MediaItem.LocalConfiguration} (for example, a URI) and need to be updated to make them