YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.snapcast.ui.SnapcastKeyFocus Class Reference

Which Snapcast group row the hardware volume keys go to (11.4): the row that has the input focus (D-pad, keyboard), else the row the user touched last, and only a row that is on screen. More...

Collaboration diagram for de.yaacc.snapcast.ui.SnapcastKeyFocus:
Collaboration graph

Public Member Functions

void touched (String receiverId)
 The user did something to the row of this receiver (a tap, a drag, a button).
 
void forget ()
 The host (the tab, the sheet) is left: the touched row is forgotten.
 
String target (Collection< String > visibleIds, String focusedId)
 

Detailed Description

Which Snapcast group row the hardware volume keys go to (11.4): the row that has the input focus (D-pad, keyboard), else the row the user touched last, and only a row that is on screen.

Nothing is guessed: with no row touched and no focus the keys are left to the system, even when exactly one group is listed. Pure; the Android code reports the touches and the focus. Thread safe.

Member Function Documentation

◆ target()

String de.yaacc.snapcast.ui.SnapcastKeyFocus.target ( Collection< String > visibleIds,
String focusedId )
Parameters
visibleIdsthe receiver ids of the Snapcast rows that are on screen
focusedIdthe receiver id of the row that has the input focus (a row of any kind), or null. The focus on a row that is no Snapcast group takes the keys away from the group touched earlier: the user moved on
Returns
the receiver id the keys go to, or null
Here is the call graph for this function:

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