# BindCanaryMode

Artifact: [androidx.media3:media3-test-utils](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/test/utils/BindCanaryMode.java+class:androidx.media3.test.utils.BindCanaryMode)

*** ** * ** ***


```
@Documented
@Retention(value = RetentionPolicy.RUNTIME)
@Target(value = ElementType.FIELD)
@Keep
@UnstableApi
public annotation BindCanaryMode
```

<br />

*** ** * ** ***

Binds a boolean test parameter field to Media3 canary mode.

When used in conjunction with `https://developer.android.com/reference/androidx/media3/test/utils/Media3FlagsRule`, the rule will automatically enable or disable canary mode before each test based on the field's value.