Package-level declarations

Types

Link copied to clipboard
enum SpaceState : Enum<SpaceState>

Represents the types of spaces in which the application is currently running, including UNKNOWN, SHARED_SPACE, and FULL_SPACE.

Link copied to clipboard
sealed class SpatialContainer(val name: String, containerId: Int) : SpatialContainerStateOwner

The base class of a SpatialContainer. It can be a WindowContainer or a Stage.

Link copied to clipboard
Link copied to clipboard

Represents the events that trigger state transitions for a SpatialContainer. These events describe changes in the SpatialContainer's SpatialContainerState, which are triggered by focus, overlapping and occlusion, or camera visibility transitions. The events can be used to track and react to state changes in real-time.

Link copied to clipboard

Used to receive SpatialContainer's SpatialContainerState change and dispatch it to observers.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The content of a SpatialView. Almost all functions towards 3D content in SpatialView are abilities of SpatialViewContent, such as entity management, coordinate converting, and event subscription.

Link copied to clipboard
open class SpatialViewEntityCollection : Collection<Entity>

A SpatialView needs a SpatialViewEntityCollection to manage entities.

Link copied to clipboard

Interface to define content of SpatialView and operations about the content.

Link copied to clipboard

Provides event subscription for a SpatialView's content.

Functions

Link copied to clipboard
fun Context.enforceFullSpace(pid: Int, uid: Int, message: String?)

Throws an IllegalStateException if the application identified by the given process and user ID is not running in a full space. Nothing will happen if your application is not running on PICO's spatial platform.

Link copied to clipboard
fun Context.enforceSelfFullSpace(message: String?)

Throws an IllegalStateException if your application is not running in a full space. Nothing will happen if your application is not running on PICO's spatial platform.

Link copied to clipboard

Determines whether the application is running in a shared space or a full space.

Link copied to clipboard
fun Context.getSpaceState(pid: Int, uid: Int): SpaceState

Determines whether the application identified by the given process and user ID is running in a shared space or a full space.