public sealed class Focus private constructor()
The configuration options for the focus indication for RippleThemeConfiguration.
Members
Opacity
public object Opacity : Focus()
An opacity-based focus indication.
InsetRing
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.
Negative inset values are not supported and are treated as 0.dp (no inset).
As this describes the overall ripple theme, and the inset ring colors are use-site specific, the colors are configured in RippleConfiguration.Focus.InsetRing instead.
Parameters
| outerStrokeInset | the amount the outer stroke is inset. Must not be negative; negative values are treated as 0.dp |
| outerStrokeWidth | the width of the outer stroke |
| innerStrokeInset | the amount the inner stroke is inset. Must not be negative; negative values are treated as 0.dp |
| innerStrokeWidth | the width of the inner stroke |
Functions
equals
override fun equals(other: Any?): Boolean
hashCode
override fun hashCode(): Int