YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.share.GuardedPickedAction Class Reference

Adapts a PickedAction to PendingPick.Callbacks and puts it under the single ActionFlight: a confirm begins the flight, hands the action a done callback that ends it, and an action that throws ends it too. More...

Inheritance diagram for de.yaacc.share.GuardedPickedAction:
Inheritance graph
Collaboration diagram for de.yaacc.share.GuardedPickedAction:
Collaboration graph

Public Member Functions

 GuardedPickedAction (ActionFlight flight, PickedAction action)
 
void onConfirmed (Set< String > receiverIds)
 The user confirmed with these receivers (never empty; unmodifiable).
 
void onCancelled ()
 The user dismissed the picker, or it was abandoned: release what the action had reserved.
 
- Public Member Functions inherited from de.yaacc.share.PendingPick.Callbacks

Detailed Description

Adapts a PickedAction to PendingPick.Callbacks and puts it under the single ActionFlight: a confirm begins the flight, hands the action a done callback that ends it, and an action that throws ends it too.

A confirm while another action is in flight is refused: the action only hears PickedAction#onCancelled() and nothing was stored.

Member Function Documentation

◆ onCancelled()

void de.yaacc.share.GuardedPickedAction.onCancelled ( )

The user dismissed the picker, or it was abandoned: release what the action had reserved.

Implements de.yaacc.share.PendingPick.Callbacks.

Here is the call graph for this function:

◆ onConfirmed()

void de.yaacc.share.GuardedPickedAction.onConfirmed ( Set< String > receiverIds)

The user confirmed with these receivers (never empty; unmodifiable).

Implements de.yaacc.share.PendingPick.Callbacks.

Here is the call graph for this function:

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