Class

FocusDirection

The FocusDirection is used to specify the direction for a FocusManager.moveFocus request.

Source set: Common
public class FocusDirection internal constructor(private val value: Int)

The FocusDirection is used to specify the direction for a FocusManager.moveFocus request.

Members

Companion

Source set: Common
public companion object

Properties

Next

Source set: Common
public val Next: FocusDirection

Direction used in FocusManager.moveFocus to indicate that you are searching for the next focusable item.

Previous

Source set: Common
public val Previous: FocusDirection

Direction used in FocusManager.moveFocus to indicate that you are searching for the previous focusable item.

Left

Source set: Common
public val Left: FocusDirection

Direction used in FocusManager.moveFocus to indicate that you are searching for the next focusable item to the left of the currently focused item.

Source set: Common
public val Right: FocusDirection

Direction used in FocusManager.moveFocus to indicate that you are searching for the next focusable item to the right of the currently focused item.

Up

Source set: Common
public val Up: FocusDirection

Direction used in FocusManager.moveFocus to indicate that you are searching for the next focusable item that is above the currently focused item.

Down

Source set: Common
public val Down: FocusDirection

Direction used in FocusManager.moveFocus to indicate that you are searching for the next focusable item that is below the currently focused item.

Enter

Source set: Common
public val Enter: FocusDirection

Direction used in FocusManager.moveFocus to indicate that you are searching for the next focusable item that is a child of the currently focused item.

Exit

Source set: Common
public val Exit: FocusDirection

Direction used in FocusManager.moveFocus to indicate that you want to move focus to the parent of the currently focused item.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: