Package-level declarations

Types

Link copied to clipboard
@Stable
class ControllerHapticConfiguration(val hover: HandControllerHapticType = HandControllerHapticType.Hover, val press: HandControllerHapticType = HandControllerHapticType.Press, val step: HandControllerHapticType = HandControllerHapticType.Step, val none: HandControllerHapticType = HandControllerHapticType.None)

hand controller haptic configuration, provide

Link copied to clipboard

hand controller type in Pico OS, provide

Link copied to clipboard
@Stable
class HandControllerHapticType(level: Int, frequency: Int, duration: Int)

hand controller haptic type, provide default haptic type

Link copied to clipboard
enum LengthUnit : Enum<LengthUnit>

the type of physical lengthUnit

Link copied to clipboard

The LocalPhysicalLengthConverter for convert between physicalLength and Dp

Link copied to clipboard
enum Material : Enum<Material>

Material in PICO design system is made up of two colors with blend mode.

Link copied to clipboard
interface PhysicalLengthConverter : Density

Interface for converting length between physical lengthUnit and Dp

Link copied to clipboard
enum ScaledType : Enum<ScaledType>

the type of Scale

Link copied to clipboard
@Stable
class SpatialAudioEffectConfiguration(val opClickEffect: SpatialSoundEffect = SpatialSoundEffect.OpClick, val opDragBeginEffect: SpatialSoundEffect = SpatialSoundEffect.OpDragBegin, val opDragEndEffect: SpatialSoundEffect = SpatialSoundEffect.OpDragEnd, val opDragScaleEffect: SpatialSoundEffect = SpatialSoundEffect.OpDragScale, val opCloseEffect: SpatialSoundEffect = SpatialSoundEffect.OpClose, val opLongPressEffect: SpatialSoundEffect = SpatialSoundEffect.OpLongPress, val stateSelectEffect: SpatialSoundEffect = SpatialSoundEffect.StateSelected, val stateUnselectEffect: SpatialSoundEffect = SpatialSoundEffect.StateUnselected, val stateOnEffect: SpatialSoundEffect = SpatialSoundEffect.StateOn, val stateOffEffect: SpatialSoundEffect = SpatialSoundEffect.StateOff, val stateSuccessEffect: SpatialSoundEffect = SpatialSoundEffect.StateSuccess, val stateFailureEffect: SpatialSoundEffect = SpatialSoundEffect.StateFailure)

Configuration for SpatialAudioEffectPlayer. Provide default sound effect for each operation.

Link copied to clipboard

hand controller haptic interface, provide feedback for hand controller haptic when user interact with hand controller, such as press, hover, step, etc.

Link copied to clipboard

The StageImmersionListener is responsible for listening the immersion level of a progressive Stage.

Link copied to clipboard

The StageImmersionManager is responsible for provider and listen the immersion level of a progressive Stage.

Link copied to clipboard

Manager for upper limb render model of stage.

Link copied to clipboard
enum ViewPoint : Enum<ViewPoint>

The ViewPoint enum.

Link copied to clipboard
Link copied to clipboard

The interface of volume View Point. when you register a VolumeViewPointListener to the VolumeViewPointManager, the VolumeViewPointListener will be called when the viewpoint of the container changes.

Properties

Link copied to clipboard
const val Centimeter2Meter: Float = 0.01f

centimeter to meter

Link copied to clipboard
@Stable
@get:Composable
val Double.centimeters: Dp

Double centimeters that equivalent in Dp

@Stable
@get:Composable
val Float.centimeters: Dp

Float centimeters that equivalent in Dp

@Stable
@get:Composable
val Int.centimeters: Dp

Int centimeters that equivalent in Dp

Link copied to clipboard
@Stable
val Float.centimeters2Meters: Float

Convert size from centimeters to meters

Link copied to clipboard
@Stable
@get:Composable
val Float.centimetersToDp: Dp

Convert centimeters to Dp

Link copied to clipboard

local hand controller haptic configuration

Link copied to clipboard

The CompositionLocal containing the current SpatialHandControllerHaptic.

Link copied to clipboard
val LocalIsMaterialBackgroundEnabled: ProvidableCompositionLocal<Boolean>

Whether the Window (e.g WindowContainer's main window , dialog , popup) has a material background.

Link copied to clipboard
Link copied to clipboard

The CompositionLocal containing the current SpatialContainerStateOwner.

Link copied to clipboard
val LocalStageImmersionManager: ProvidableCompositionLocal<StageImmersionManager>

The CompositionLocal containing the current StageProgressiveImmersion.

Link copied to clipboard

The CompositionLocal containing the current StageUpperLimbRenderModelManager.

Link copied to clipboard
val LocalVolumeViewPointManager: ProvidableCompositionLocal<VolumeViewPointManager>

The CompositionLocal containing the current LocalSpatialViewPointManager.

Link copied to clipboard
@Stable
@get:Composable
val Double.meters: Dp

Double meters that equivalent in Dp

@Stable
@get:Composable
val Float.meters: Dp

Float meters that equivalent in Dp

@Stable
@get:Composable
val Int.meters: Dp

Integer meters that equivalent in Dp

Link copied to clipboard
@Stable
val Float.meters2Centimeters: Float

Convert size from meters to centimeters

Link copied to clipboard
@Stable
@get:Composable
val Float.metersToDp: Dp

Convert meters to Dp

Link copied to clipboard
@Stable
@get:Composable
val Dp.toCentimeters: Float

Convert Dp to centimeters

Link copied to clipboard
@Stable
@get:Composable
val Dp.toMeters: Float

Convert Dp to meters

Functions

Link copied to clipboard
fun Float.convertFromMeters(toUnit: LengthUnit): Float

Convert to the LengthUnit value from a LengthUnit.Meters value.

Link copied to clipboard
fun Float.convertToMeters(fromUnit: LengthUnit): Float

Convert to a LengthUnit.Meters value from the LengthUnit value.

Link copied to clipboard
Link copied to clipboard
@Composable
fun SpatialLocalsForPreview(content: @Composable () -> Unit)

A helper to provides some default impl of PICO OS specific CompositionLocal for @Preview functions DO NOT USE THIS FUNCTION IN PRODUCTION.

Link copied to clipboard
fun InteractionKindExtra.toHandController(): HandController

Converts this InteractionKindExtra to the corresponding HandController.