---
layout: default-layout
title: ObservationParameters - Dynamsoft Capture Vision Android Edition API Reference
description: The class ObservationParameters of Dynamsoft Capture Vision Android represents filter conditions for the IntermediateResultReceiver, which allows the user to specify which intermediate results to be notified.
keywords: observation parameters, filter conditions, Java, Kotlin
needGenerateH3Content: true
needAutoGenerateSidebar: true
noTitleIndex: true
---

# 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:* DynamsoftCaptureVisionBundle.aar

```java
class ObservationParameters
```

## Methods

| Method | Description |
|------- |-------------|
| [`addObservedTask`](#addobservedtask) | Adds observed task name to be notified when relevant results are available. |
| [`removeObservedTask`](#removeobservedtask) | Remove the observed task name so that intermediate results generated by the task are not notified. |
| [`isTaskObserved`](#istaskobserved) | Check whether the specified task was observed. |
| [`setResultUnitTypesOnlyForInput`](#setresultunittypesonlyforinput) | Defines the type of intermediate result unit that indicates skipping default calculations and replacing with input data units. |
| [`getResultUnitTypesOnlyForInput`](#getresultunittypesonlyforinput) | Get the intermediate result unit that only for replacing with input data units. |

### addObservedTask

Adds observed task name to be notified when relevant results are available.

```java
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.

```java
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.

```java
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.

### setResultUnitTypesOnlyForInput

Defines the type of intermediate result unit that indicates skipping default calculations and replacing with input data units.

```java
void setResultUnitTypesOnlyForInput(long types);
```

**Parameters**

`[in] types`: Specify the result unit types only for input.

### getResultUnitTypesOnlyForInput

Get the intermediate result unit that only for replacing with input data units.

```java
long getResultUnitTypesOnlyForInput();
```

**Return Value**

The result unit types only for input.
