PaneExpansionAnchor.Offset


PaneExpansionAnchor implementation that specifies the anchor position based on the offset in Dp.

Summary

Nested types

Represents the direction from where the offset will be calculated.

Public companion functions

PaneExpansionAnchor.Offset
fromEnd(offset: Dp)

Create an androidx.compose.material3.adaptive.layout.PaneExpansionAnchor.Offset anchor from the end side of the layout.

Cmn
PaneExpansionAnchor.Offset
fromStart(offset: Dp)

Create an androidx.compose.material3.adaptive.layout.PaneExpansionAnchor.Offset anchor from the start side of the layout.

Cmn

Public functions

open operator Boolean
equals(other: Any?)
Cmn
open Int
Cmn

Public properties

PaneExpansionAnchor.Offset.Direction

Indicates the direction of the offset.

Cmn
Dp

the offset of the anchor in Dp.

Cmn

Inherited properties

From androidx.compose.material3.adaptive.layout.PaneExpansionAnchor
abstract String

The description of the anchor that will be used in androidx.compose.ui.semantics.SemanticsProperties like accessibility services.

Cmn

Public companion functions

fromEnd

fun fromEnd(offset: Dp): PaneExpansionAnchor.Offset

Create an androidx.compose.material3.adaptive.layout.PaneExpansionAnchor.Offset anchor from the end side of the layout.

Parameters
offset: Dp

offset to be used in Dp.

fromStart

fun fromStart(offset: Dp): PaneExpansionAnchor.Offset

Create an androidx.compose.material3.adaptive.layout.PaneExpansionAnchor.Offset anchor from the start side of the layout.

Parameters
offset: Dp

offset to be used in Dp.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

Public properties

direction

val directionPaneExpansionAnchor.Offset.Direction

Indicates the direction of the offset.

See also
FromStart
FromEnd

offset

val offsetDp

the offset of the anchor in Dp.