YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.PickedAction Interface Reference

What a picked action does with the answer of the receiver picker (see GuardedPickedAction and BrowserHost#pickReceivers). More...

Collaboration diagram for de.yaacc.share.PickedAction:
Collaboration graph

Public Member Functions

void onConfirmed (Set< String > receiverIds, Runnable done)
 The user confirmed.
 
void onCancelled ()
 The picker was dismissed, abandoned, or the action was refused because another one is in flight.
 
default PickContent content ()
 What the action is about to play, as far as it is known before the pick: the picker leaves out the receivers that can not play it (a Snapcast group for images and videos).
 

Detailed Description

What a picked action does with the answer of the receiver picker (see GuardedPickedAction and BrowserHost#pickReceivers).

Called on the main thread.

Member Function Documentation

◆ content()

default PickContent de.yaacc.share.PickedAction.content ( )

What the action is about to play, as far as it is known before the pick: the picker leaves out the receivers that can not play it (a Snapcast group for images and videos).

The default knows nothing and offers every receiver.

◆ onConfirmed()

void de.yaacc.share.PickedAction.onConfirmed ( Set< String > receiverIds,
Runnable done )

The user confirmed.

The action owns the single flight now: it MUST call done exactly when it no longer needs the stored receiver selection (started, failed or refused); calling it again is harmless.

Parameters
receiverIdsthe chosen receivers (never empty; unmodifiable)

Referenced by de.yaacc.share.GuardedPickedAction.onConfirmed().

Here is the caller graph for this function:

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