# BoundDynamicType

Artifact: [androidx.wear.protolayout:protolayout-expression-pipeline](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/expression/pipeline/BoundDynamicType.java+class:androidx.wear.protolayout.expression.pipeline.BoundDynamicType) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

*** ** * ** ***


```
public interface BoundDynamicType extends AutoCloseable
```

<br />

*** ** * ** ***

An object representing a dynamic type that is being prepared for evaluation by `https://developer.android.com/reference/androidx/wear/protolayout/expression/pipeline/DynamicTypeEvaluator#bind(androidx.wear.protolayout.expression.pipeline.DynamicTypeBindingRequest)`.

In order for evaluation and sending values to start, `https://developer.android.com/reference/androidx/wear/protolayout/expression/pipeline/BoundDynamicType#startEvaluation()` needs to be called.

To stop the evaluation, this object should be closed with `https://developer.android.com/reference/androidx/wear/protolayout/expression/pipeline/BoundDynamicType#close()`.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `@https://developer.android.com/reference/androidx/annotation/UiThread https://developer.android.com/reference/androidx/wear/protolayout/expression/pipeline/BoundDynamicType#close()()` Destroys this dynamic type and it shouldn't be used after this. |
| `abstract void` | `@https://developer.android.com/reference/androidx/annotation/UiThread https://developer.android.com/reference/androidx/wear/protolayout/expression/pipeline/BoundDynamicType#startEvaluation()()` Starts evaluating this dynamic type that was previously bound with any of the `https://developer.android.com/reference/androidx/wear/protolayout/expression/pipeline/DynamicTypeEvaluator#bind(androidx.wear.protolayout.expression.pipeline.DynamicTypeBindingRequest)` methods. |

## Public methods

### close

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@UiThread
abstract void close()
```

Destroys this dynamic type and it shouldn't be used after this.

### startEvaluation

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.0.0)

```
@UiThread
abstract void startEvaluation()
```

Starts evaluating this dynamic type that was previously bound with any of the `https://developer.android.com/reference/androidx/wear/protolayout/expression/pipeline/DynamicTypeEvaluator#bind(androidx.wear.protolayout.expression.pipeline.DynamicTypeBindingRequest)` methods.

It's the callers responsibility to destroy those dynamic types after use, with `https://developer.android.com/reference/androidx/wear/protolayout/expression/pipeline/BoundDynamicType#close()`.