# RippleConfiguration.Focus

> The configuration options for the focus indication for [RippleConfiguration].

## API Reference

> Source set: Android

```kotlin
public sealed class Focus private constructor()
```

The configuration options for the focus indication for [RippleConfiguration](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/classes/RippleConfiguration/api.md).

## Members

### Opacity

> Source set: Android

```kotlin
public object Opacity : Focus()
```

An opacity-based focus indication.

This describes a use-site specific override for when opacity layer-based focus visuals
are used. Currently, there are no configuration options for opacity.

## Functions

### toString

> Source set: Android

```kotlin
override fun toString(): String
```

### InsetRing

> Source set: Android

```kotlin
public class InsetRing(
            public val outerStrokeColor: Color = Color.Unspecified,
            public val innerStrokeColor: Color = Color.Unspecified,
        ) : Focus()
```

An inset ring focus indication. This is drawn using two strokes, an outer stroke and an
inner stroke. The inner stroke is drawn first, followed by the outer stroke.

As this describes a use-site specific override, this provides coloring overrides for an
inset focus ring being drawn by an individual component. The inset ring dimensions are
controlled by [RippleThemeConfiguration.Focus.InsetRing](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/classes/RippleThemeConfiguration.Focus.InsetRing/api.md) instead.

#### Parameters

| | |
| --- | --- |
| outerStrokeColor | the color of the outer stroke. If `Color.Unspecified`, then the default color from the theme will be used instead. |
| innerStrokeColor | the color of the inner stroke. If `Color.Unspecified`, then the default color from the theme will be used instead. |

## Functions

### equals

> Source set: Android

```kotlin
override fun equals(other: Any?): Boolean
```

### hashCode

> Source set: Android

```kotlin
override fun hashCode(): Int
```

### toString

> Source set: Android

```kotlin
override fun toString(): String
```
