# RippleThemeConfiguration.Focus

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

## API Reference

> Source set: Android

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

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

## Members

### Opacity

> Source set: Android

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

An opacity-based focus indication.

## Functions

### toString

> Source set: Android

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

### InsetRing

> Source set: Android

```kotlin
public class InsetRing(
            public val outerStrokeInset: Dp,
            public val outerStrokeWidth: Dp,
            public val innerStrokeInset: Dp,
            public val innerStrokeWidth: Dp,
        ) : 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.

All stroke insets and widths must be non-negative, and the outer and inner strokes must
overlap such that the outer stroke is not inset further than the inner stroke
(`outerStrokeInset <= innerStrokeInset`), the inner stroke starts before or at the inner
edge of the outer stroke (`innerStrokeInset <= outerStrokeInset + outerStrokeWidth`), and
the inner stroke extends at least as far inward as the outer stroke (`outerStrokeInset +
outerStrokeWidth <= innerStrokeInset + innerStrokeWidth`).

As this describes the overall ripple theme, and the inset ring colors are use-site
specific, the colors are configured in [RippleConfiguration.Focus.InsetRing](https://composables.com/jetpack-compose/androidx.wear.compose/compose-material3/classes/RippleConfiguration.Focus.InsetRing/api.md) instead.

#### Parameters

| | |
| --- | --- |
| outerStrokeInset | the amount the outer stroke is inset |
| outerStrokeWidth | the width of the outer stroke |
| innerStrokeInset | the amount the inner stroke is inset |
| innerStrokeWidth | the width of the inner stroke |

## 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
```
