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 that provides default haptic types:

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

Player for spatial audio effects. We provide the default implementation. Callers should use LocalAudioEffectPlayer to get the instance.

Link copied to clipboard

Hand controller haptic interface that provides haptic feedback when the user interacts with a hand controller, such as press, hover, and step.

Link copied to clipboard

Spatial sound effects. Current supported effects in PICO OS.

Link copied to clipboard

The StageImmersionListener listens to the immersion level of a progressive Stage.

Link copied to clipboard

The StageImmersionManager is responsible for providing and listening to the immersion level of a progressive Stage.

Link copied to clipboard

Manager for the upper limb render mode of a 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 are equivalent in Dp.

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

Float centimeters that are equivalent in Dp.

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

Int centimeters that are equivalent in Dp.

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

Converts size from centimeters to meters.

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

Converts 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 SpatialContainerStateManagerImpl of current SpatialContainer.

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 are equivalent in Dp.

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

Float meters that are equivalent in Dp.

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

Integer meters that are equivalent in Dp.

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

Converts size from meters to centimeters.

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

Converts meters to Dp.

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

Converts Dp to centimeters.

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

Converts Dp to meters.

Functions

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

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

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

Converts 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.