abstract class Offset internal constructor(val offset: Dp, override internal val type: Int) :
PaneExpansionAnchor()
PaneExpansionAnchor implementation that specifies the anchor position based on the offset in Dp.
Properties
direction
val direction: Direction = Direction(type)
Indicates the direction of the offset.
Functions
toString
override fun toString(): String
equals
override fun equals(other: Any?): Boolean
hashCode
override fun hashCode(): Int
Members
Direction
class Direction internal constructor(internal val value: Int)
Represents the direction from where the offset will be calculated.
Members
Companion
companion object
Properties
FromStart
val FromStart = Direction(OffsetFromStartType)
Indicates the offset will be calculated from the start. For example, if the offset is 150.dp, the resulted anchor will be at the position that is 150dp away from the start side of the associated layout.
FromEnd
val FromEnd = Direction(OffsetFromEndType)
Indicates the offset will be calculated from the end. For example, if the offset is 150.dp, the resulted anchor will be at the position that is 150dp away from the end side of the associated layout.
Companion
companion object
Functions
fromStart
fun fromStart(offset: Dp): Offset
Create an androidx.compose.material3.adaptive.layout.PaneExpansionAnchor.Offset anchor from the start side of the layout.
Parameters
| offset | offset to be used in Dp. |
fromEnd
fun fromEnd(offset: Dp): Offset
Create an androidx.compose.material3.adaptive.layout.PaneExpansionAnchor.Offset anchor from the end side of the layout.
Parameters
| offset | offset to be used in Dp. |