Base class for handling MediaPipe task graph outputs.
Nested Classes
ERROR(/Packet)
s to task result object and task
input object. true
. Public Constructors
Public Methods
| long | |
| OutputT | |
| void | setErrorListener
( ErrorListener
listener)
Sets a callback to be invoked when exceptions are thrown from the task graph.
|
| void | setHandleTimestampBoundChanges
(boolean handleTimestampBoundChanges)
Sets whether the output handler should react to the timestamp bound changes that are
represented as empty output
ERROR(/Packet)
s. |
| void | setOutputPacketConverter
( OutputPacketConverter
<OutputT, InputT> converter)
Sets a callback to be invoked to convert a
ERROR(/Packet)
list to a task result object and a
task input object. |
| void | setResultListener
( ResultListener
<OutputT, InputT> listener)
Sets a callback to be invoked when task result objects become available.
|
Inherited Methods
Public Constructors
public OutputHandler ()
Public Methods
public long getLatestOutputTimestamp ()
public OutputT retrieveCachedTaskResult ()
public void setErrorListener ( ErrorListener listener)
Sets a callback to be invoked when exceptions are thrown from the task graph.
Parameters
public void setHandleTimestampBoundChanges (boolean handleTimestampBoundChanges)
Sets whether the output handler should react to the timestamp bound changes that are
represented as empty output ERROR(/Packet)
s.
Parameters
public void setOutputPacketConverter ( OutputPacketConverter <OutputT, InputT> converter)
Sets a callback to be invoked to convert a ERROR(/Packet)
list to a task result object and a
task input object.
Parameters
public void setResultListener ( ResultListener <OutputT, InputT> listener)
Sets a callback to be invoked when task result objects become available.

