SpaceChangedEventΒΆ

Class SpaceChangedEvent

Event that is fired when the user switched to a new 3D space or when the current space got an ID assigned to it.

The ID of the space the user is currently in. If undefined, the current space does not have an ID assigned to it (yet). If a space handle for the current space gets requested, this event will be fired again with the assigned space ID. This parameter is definitively set when:

  1. SpaceAPI.openSpace was called with a parameter containing a valid space ID.
  2. SpaceAPI.cloneIntoNewSpace was called with a valid space ID that does not exist yet.
  3. SpaceAPI.requestSpaceHandle was called for a space that does not have an ID assigned yet.

Hierarchy (View Summary)

Index

Properties

id: number

The unique ID of the event.

spaceId?: string
transactionCode?: string

The transaction code associated with the event.

transactionID?: number

The transaction ID associated with the event.

type?: EventType

The type of the event.