Class

HorizontalOrbiterProperties

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

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

XR-specific properties for components that use horizontally-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 HorizontalOrbiterProperties and use it if the CompositionLocal is not set.

Functions

copy

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

Returns a new HorizontalOrbiterProperties with one or more properties changed.

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