ObservationParameters
The ObservationParameters
class is used to set filter conditions for the IntermediateResultReceiver
, so that only intermediate results meeting specific conditions will be called back.
Definition
Namespace: com.dynamsoft.core.intermediate_results
Assembly: DynamsoftCore.aar
class ObservationParameters
Methods
Method | Description |
---|---|
addObservedTask |
Adds observed task name to be notified when relevant results are available. |
removeObservedTask |
Remove the observed task name so that intermediate results generated by the task are not notified. |
isTaskObserved |
Check whether the specified task was observed. |
addObservedTask
Adds observed task name to be notified when relevant results are available.
void addObservedTask(String taskName);
Parameters
[in] taskName
: Specify a task name to add to the observation list.
removeObservedTask
Remove the observed task name so that intermediate results generated by the task are not notified.
void removeObservedTask(String taskName);
Parameters
[in] taskName
: Specify a task name to remove from the observation list.
isTaskObserved
Check whether the specified task was observed.
boolean isTaskObserved(String taskName);
Parameters
[in] taskName
: Specify a task name to check the observation state.
Return Value
A boolean value that indicates whether the specified task is observed.