# ProtoLayoutScope.RendererCapability

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

*** ** * ** ***


```
public enum ProtoLayoutScope.RendererCapability extends Enum<@NonNull ProtoLayoutScope.RendererCapability>
```

<br />

|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) |||
| ↳ | [kotlin.Enum](https://developer.android.com/reference/java/lang/Enum.html)\<@[NonNull](https://developer.android.com/reference/androidx/annotation/NonNull) [ProtoLayoutScope.RendererCapability](https://developer.android.com/reference/androidx/wear/protolayout/ProtoLayoutScope.RendererCapability)\> ||
|   | ↳ | [androidx.wear.protolayout.ProtoLayoutScope.RendererCapability](https://developer.android.com/reference/androidx/wear/protolayout/ProtoLayoutScope.RendererCapability) |

*** ** * ** ***

Defines the capabilities or features that a renderer can support.

Support for each feature requires a certain minimum renderer version, which must be checked against the current `https://developer.android.com/reference/androidx/wear/protolayout/expression/VersionBuilders.VersionInfo`.

## Summary

| ### Enum Values |
|---|---|
| `https://developer.android.com/reference/androidx/wear/protolayout/ProtoLayoutScope.RendererCapability#LOTTIE_COLOR_FOR_SLOT` | Indicates support for customizing Lottie animation by specifying color for slot. |
| `https://developer.android.com/reference/androidx/wear/protolayout/ProtoLayoutScope.RendererCapability#PENDING_INTENT_ACTION` | Indicates support for clickable response with PendingIntent. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/ProtoLayoutScope.RendererCapability>` | `https://developer.android.com/reference/androidx/wear/protolayout/ProtoLayoutScope.RendererCapability#getEntries()()` Returns an immutable `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html` list containing the constants of this enum type, in the order they're declared. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/wear/protolayout/ProtoLayoutScope.RendererCapability` | `https://developer.android.com/reference/androidx/wear/protolayout/ProtoLayoutScope.RendererCapability#valueOf(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` Returns the enum constant of this type with the specified name. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull ProtoLayoutScope.RendererCapability[]` | `https://developer.android.com/reference/androidx/wear/protolayout/ProtoLayoutScope.RendererCapability#values()()` Returns an array containing the constants of this enum type, in the order they're declared. |

## Enum Values

### LOTTIE_COLOR_FOR_SLOT

```
ProtoLayoutScope.RendererCapability ProtoLayoutScope.RendererCapability.LOTTIE_COLOR_FOR_SLOT
```

Indicates support for customizing Lottie animation by specifying color for slot.

### PENDING_INTENT_ACTION

```
ProtoLayoutScope.RendererCapability ProtoLayoutScope.RendererCapability.PENDING_INTENT_ACTION
```

Indicates support for clickable response with PendingIntent.

## Public methods

### getEntries

```
public final @NonNull EnumEntries<@NonNull ProtoLayoutScope.RendererCapability> getEntries()
```

Returns an immutable `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.enums/-enum-entries/index.html` list containing the constants of this enum type, in the order they're declared.

### valueOf

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

```
public static final @NonNull ProtoLayoutScope.RendererCapability valueOf(@NonNull String value)
```

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

| Throws |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-illegal-argument-exception/index.html` | if this enum type has no constant with the specified name |

### values

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

```
public static final @NonNull ProtoLayoutScope.RendererCapability[] values()
```

Returns an array containing the constants of this enum type, in the order they're declared.

This method may be used to iterate over the constants.

The function returns a new instance of the array on every call. The array could be mutated, so working with it may also require defensive copying. Consider using `entries` property as a more efficient alternative returning an immutable list of enum entries.