Android 12 Developer Preview is here! Try it out, and give us your feedback!

FocusEventModifier

interface FocusEventModifier : Modifier.Element
androidx.compose.ui.focus.FocusEventModifier

A modifier that can be used to observe focus state events.

Summary

Public methods
abstract Unit
onFocusEvent(focusState: FocusState)

A callback that is called whenever the focus system raises events.

Inherited functions
Inherited extension functions
From androidx.compose.foundation.layout
Modifier
Modifier.absoluteOffset(x: Dp = 0.dp, y: Dp = 0.dp)

Offset the content by (x dp, y dp).

Modifier

Offset the content by offset px.

Modifier
Modifier.absolutePadding(left: Dp = 0.dp, top: Dp = 0.dp, right: Dp = 0.dp, bottom: Dp = 0.dp)

Apply additional space along each edge of the content in Dp: left, top, right and bottom.

Modifier