# Filters

Added in 1.3.0

*** ** * ** ***


```
public final class Filters
```

<br />

*** ** * ** ***

## Summary

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#containsTag(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element's metadata tag contains the given value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasAllCorners(kotlin.Float)(float radiusDp)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has all its four corners with the given radius. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasBottomLeftCorner(kotlin.Float,kotlin.Float)(float xRadiusDp, float yRadiusDp)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has its bottom left corner with the given radii. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasBottomRightCorner(kotlin.Float,kotlin.Float)(float xRadiusDp, float yRadiusDp)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has its bottom right corners with the given radii. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasChild(androidx.wear.protolayout.testing.LayoutElementMatcher)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher matcher)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has a child matching the given matcher. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasClickable(androidx.wear.protolayout.ActionBuilders.Action,kotlin.String,kotlin.Float,kotlin.Float)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/ActionBuilders.Action action, https://developer.android.com/reference/java/lang/String.html id, @https://developer.android.com/reference/androidx/annotation/Dimension(unit = 0) float minClickableWidth, @https://developer.android.com/reference/androidx/annotation/Dimension(unit = 0) float minClickableHeight )` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the specific `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Clickable` attached. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasColor(kotlin.Int)(@https://developer.android.com/reference/androidx/annotation/ColorInt int argb)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element is drawn with the given color. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasContentDescription(kotlin.text.Regex)(@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.text/-regex/index.html pattern)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element's content description matches the given pattern. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasContentDescription(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element's content description contains the given value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasDescendant(androidx.wear.protolayout.testing.LayoutElementMatcher)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher matcher)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has a descendant matches the given matcher. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasHeight(androidx.wear.protolayout.DimensionBuilders.ContainerDimension)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.ContainerDimension height)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the given height value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasHeight(androidx.wear.protolayout.DimensionBuilders.ProportionalDimensionProp)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.ProportionalDimensionProp height)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the given height value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasImage(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html protolayoutResId)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element displays an image with the given protolayout resource id. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasTag(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element's metadata tag equals to the given value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasText(kotlin.String,kotlin.Boolean,kotlin.Boolean)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value, boolean subString, boolean ignoreCase)` |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasTopLeftCorner(kotlin.Float,kotlin.Float)(float xRadiusDp, float yRadiusDp)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has its top left corner with the given radii. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasTopRightCorner(kotlin.Float,kotlin.Float)(float xRadiusDp, float yRadiusDp)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has its top right corner with the given radii. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasWidth(androidx.wear.protolayout.DimensionBuilders.ContainerDimension)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.ContainerDimension width)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the given width value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#hasWidth(androidx.wear.protolayout.DimensionBuilders.ProportionalDimensionProp)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/DimensionBuilders.ProportionalDimensionProp width)` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the given width value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#isClickable()()` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element is clickable. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` | `https://developer.android.com/reference/androidx/wear/protolayout/testing/Filters#isSemanticsHeading()()` Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element is marked as heading for accessibility purpose. |

## Public methods

### containsTag

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:containsTag) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher containsTag(@NonNull String value)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element's metadata tag contains the given value.

### hasAllCorners

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasAllCorners) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasAllCorners(float radiusDp)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has all its four corners with the given radius.

### hasBottomLeftCorner

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasBottomLeftCorner) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasBottomLeftCorner(float xRadiusDp, float yRadiusDp)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has its bottom left corner with the given radii.

### hasBottomRightCorner

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasBottomRightCorner) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasBottomRightCorner(float xRadiusDp, float yRadiusDp)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has its bottom right corners with the given radii.

### hasChild

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasChild) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasChild(@NonNull LayoutElementMatcher matcher)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has a child matching the given matcher.

### hasClickable

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasClickable) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasClickable(
    @NonNull ActionBuilders.Action action,
    String id,
    @Dimension(unit = 0) float minClickableWidth,
    @Dimension(unit = 0) float minClickableHeight
)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the specific `https://developer.android.com/reference/androidx/wear/protolayout/ModifiersBuilders.Clickable` attached.

### hasColor

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasColor) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasColor(@ColorInt int argb)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element is drawn with the given color.

### hasContentDescription

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasContentDescription) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasContentDescription(@NonNull Regex pattern)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element's content description matches the given pattern.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.text/-regex/index.html pattern` | String pattern to match with content description. |

### hasContentDescription

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasContentDescription) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasContentDescription(@NonNull String value)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element's content description contains the given value.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value` | Value to match with content description. |

### hasDescendant

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasDescendant) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasDescendant(@NonNull LayoutElementMatcher matcher)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has a descendant matches the given matcher.

### hasHeight

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasHeight) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasHeight(@NonNull DimensionBuilders.ContainerDimension height)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the given height value.

### hasHeight

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasHeight) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasHeight(@NonNull DimensionBuilders.ProportionalDimensionProp height)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the given height value.

### hasImage

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasImage) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasImage(@NonNull String protolayoutResId)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element displays an image with the given protolayout resource id.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html protolayoutResId` | The resource id of the image, which should be a protolayout resource id instead of android resource id. |

### hasTag

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasTag) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasTag(@NonNull String value)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element's metadata tag equals to the given value.

### hasText

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasText) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasText(@NonNull String value, boolean subString, boolean ignoreCase)
```

### hasTopLeftCorner

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasTopLeftCorner) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasTopLeftCorner(float xRadiusDp, float yRadiusDp)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has its top left corner with the given radii.

### hasTopRightCorner

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasTopRightCorner) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasTopRightCorner(float xRadiusDp, float yRadiusDp)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has its top right corner with the given radii.

### hasWidth

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasWidth) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasWidth(@NonNull DimensionBuilders.ContainerDimension width)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the given width value.

### hasWidth

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:hasWidth) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher hasWidth(@NonNull DimensionBuilders.ProportionalDimensionProp width)
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element has the given width value.

### isClickable

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:isClickable) Added in [1.3.0](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.3.0)

```
public static final @NonNull LayoutElementMatcher isClickable()
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element is clickable.

### isSemanticsHeading

Artifact: [androidx.wear.protolayout:protolayout-testing](https://developer.android.com/jetpack/androidx/releases/wear-protolayout) [View Source](https://cs.android.com/search?q=file:androidx/wear/protolayout/testing/filters.kt+function:isSemanticsHeading) Added in [1.4.2](https://developer.android.com/jetpack/androidx/releases/wear-protolayout#1.4.2)

```
public static final @NonNull LayoutElementMatcher isSemanticsHeading()
```

Returns a `https://developer.android.com/reference/androidx/wear/protolayout/testing/LayoutElementMatcher` which checks whether the element is marked as heading for accessibility purpose.