YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.browser.MiniPlayerRows Class Reference

Plain-Java decisions of the mini-player list: which rows exist in which order, and the key of a row's album art. More...

Collaboration diagram for de.yaacc.browser.MiniPlayerRows:
Collaboration graph

Static Public Member Functions

static List< PlayerRef > order (List< PlayerRef > players)
 The rows of the mini-player in the device sheet's session order: creation sequence ascending (oldest first), equal sequences by player id (see DeviceSessionGrouper), so the result never depends on input order.
 
static String artKey (int playerId, String artUri)
 The identity of what a row shows as album art: the player id and the art URI (null for no art) and nothing else.
 

Detailed Description

Plain-Java decisions of the mini-player list: which rows exist in which order, and the key of a row's album art.

No Android types, JVM-testable.

Member Function Documentation

◆ artKey()

static String de.yaacc.browser.MiniPlayerRows.artKey ( int playerId,
String artUri )
static

The identity of what a row shows as album art: the player id and the art URI (null for no art) and nothing else.

In particular it does not depend on Player#getIcon(), which can queue a download of its own on every call; see MiniPlayerArtKeys.

◆ order()

static List< PlayerRef > de.yaacc.browser.MiniPlayerRows.order ( List< PlayerRef > players)
static

The rows of the mini-player in the device sheet's session order: creation sequence ascending (oldest first), equal sequences by player id (see DeviceSessionGrouper), so the result never depends on input order.

Null entries are skipped, a null or unknown deviceId is fine, and of two entries with the same player id only the first one in that order is kept (a RecyclerView with stable ids must never see an id twice). Returns a new list; players is not modified and may be null.


The documentation for this class was generated from the following file: