Start native apps faster with the Composables CLI ->
Class

OrbiterAnchorPoint

Represents an anchor point for an Orbiter relative to its target.

Source set: Android
public sealed class OrbiterAnchorPoint private constructor()

Represents an anchor point for an Orbiter relative to its target.

Each anchor point defines a specific location on the boundary of the target where the orbiter can be attached. The anchor points are sensitive to LayoutDirection, ensuring that concepts like "start" and "end" are correctly interpreted in both LTR and RTL contexts.

For layout direction-agnostic positioning, use the Absolute variants.

Members

TopStart

Source set: Android
public object TopStart : OrbiterAnchorPoint()

Attach the Orbiter at the start of the top edge of the content. Start is Left if the layout direction is LTR and Right if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

Top

Source set: Android
public object Top : OrbiterAnchorPoint()

Attach the Orbiter at the center of the top edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

TopEnd

Source set: Android
public object TopEnd : OrbiterAnchorPoint()

Attach the Orbiter at the end of the top edge of the content. End is Right if the layout direction is LTR and Left if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

EndTop

Source set: Android
public object EndTop : OrbiterAnchorPoint()

Attach the Orbiter at the top of the end edge of the content. End is Right if the layout direction is LTR and Left if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

End

Source set: Android
public object End : OrbiterAnchorPoint()

Attach the Orbiter at the center of the end edge of the content. End is Right if the layout direction is LTR and Left if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

EndBottom

Source set: Android
public object EndBottom : OrbiterAnchorPoint()

Attach the Orbiter at the bottom of the end edge of the content. End is Right if the layout direction is LTR and Left if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

BottomStart

Source set: Android
public object BottomStart : OrbiterAnchorPoint()

Attach the Orbiter at the start of the bottom edge of the content. Start is Left if the layout direction is LTR and Right if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

Bottom

Source set: Android
public object Bottom : OrbiterAnchorPoint()

Attach the Orbiter at the center of the bottom edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

BottomEnd

Source set: Android
public object BottomEnd : OrbiterAnchorPoint()

Attach the Orbiter at the end of the bottom edge of the content. End is Right if the layout direction is LTR and Left if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

StartTop

Source set: Android
public object StartTop : OrbiterAnchorPoint()

Attach the Orbiter at the top of the start edge of the content. Start is Left if the layout direction is LTR and Right if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

Start

Source set: Android
public object Start : OrbiterAnchorPoint()

Attach the Orbiter at the center of the start edge of the content. Start is Left if the layout direction is LTR and Right if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

StartBottom

Source set: Android
public object StartBottom : OrbiterAnchorPoint()

Attach the Orbiter at the bottom of the start edge of the content. Start is Left if the layout direction is LTR and Right if the layout direction is RTL.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
            anchorHalfSize: FloatSize2d,
            layoutDirection: LayoutDirection,
            orbiterHalfSize: FloatSize2d,
        ): Vector3

Absolute

Source set: Android
public sealed class Absolute : OrbiterAnchorPoint()

Provides anchor points that are not affected by LayoutDirection.

Members

TopLeft

Source set: Android
public object TopLeft : Absolute()

Attach the Orbiter at the left of the top edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3

TopRight

Source set: Android
public object TopRight : Absolute()

Attach the Orbiter at the right of the top edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3

RightTop

Source set: Android
public object RightTop : Absolute()

Attach the Orbiter at the top of the right edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3
Source set: Android
public object Right : Absolute()

Attach the Orbiter at the center of the right edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3

RightBottom

Source set: Android
public object RightBottom : Absolute()

Attach the Orbiter at the bottom of the right edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3

BottomLeft

Source set: Android
public object BottomLeft : Absolute()

Attach the Orbiter at the left of the bottom edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3

BottomRight

Source set: Android
public object BottomRight : Absolute()

Attach the Orbiter at the right of the bottom edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3

LeftTop

Source set: Android
public object LeftTop : Absolute()

Attach the Orbiter at the top of the left edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3

Left

Source set: Android
public object Left : Absolute()

Attach the Orbiter at the center of the left edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3

LeftBottom

Source set: Android
public object LeftBottom : Absolute()

Attach the Orbiter at the bottom of the left edge of the content.

Functions

calculateAnchorVector

Source set: Android
override fun calculateAnchorVector(
                anchorHalfSize: FloatSize2d,
                layoutDirection: LayoutDirection,
                orbiterHalfSize: FloatSize2d,
            ): Vector3