Class

VerticalOrbiterProperties

XR-specific properties for components that use vertically-aligned Orbiters.

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Android
@ExperimentalMaterial3XrApi
public class VerticalOrbiterProperties(
    public val offset: Dp,
    public val offsetType: OrbiterOffsetType,
    public val position: ContentEdge.Vertical,
    public val alignment: Alignment.Vertical,
    public val shape: SpatialShape,
)

XR-specific properties for components that use vertically-aligned Orbiters.

These properties should be provided via a CompositionLocal for the given component.

The component should also define a publicly-visible default instance of VerticalOrbiterProperties and use it if the CompositionLocal is not set.

Functions

copy

public fun copy(
        offset: Dp? = null,
        offsetType: OrbiterOffsetType? = null,
        position: ContentEdge.Vertical? = null,
        alignment: Alignment.Vertical? = null,
        shape: SpatialShape? = null,
    ): VerticalOrbiterProperties

Returns a new VerticalOrbiterProperties with one or more properties changed.

If null is provided for any value, the existing value will be used.