YAACC - UPNP Client and Server
Loading...
Searching...
No Matches
de.yaacc.fcast.discovery.FCastLinkIntake Class Reference

What the activity that opens fcast://r/ links accepts and does (task 5.6). More...

Collaboration diagram for de.yaacc.fcast.discovery.FCastLinkIntake:
Collaboration graph

Classes

class  Decision
 What to do with an incoming link.
 
enum  Kind
 

Public Member Functions

 FCastLinkIntake (MonotonicClock clock)
 
synchronized Decision accept (String dataString)
 

Static Public Attributes

static final long REPEAT_MILLIS = 2_000L
 

Detailed Description

What the activity that opens fcast://r/ links accepts and does (task 5.6).

The link can come from any app or web page, not only from a scan, so: nothing is connected, played or stored before the user confirms; a link that is not an FCast connection link (or one that does not parse) shows "not an FCast link" and nothing else; an identical link repeated within {@value REPEAT_MILLIS} ms is ignored (a page that fires the same intent in a loop must not stack dialogs); the link text is never logged. Pure; the clock is injected.

Member Function Documentation

◆ accept()

synchronized Decision de.yaacc.fcast.discovery.FCastLinkIntake.accept ( String dataString)
Parameters
dataStringthe data of the intent (getDataString() only), may be null

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