API reference
API reference
Select your platform
No SDKs available
No versions available

MRUKSceneEventListener Interface

Events that occur during the MRUK Scene lifecycle.

Signature

interface MRUKSceneEventListener

Functions

onAnchorAdded ( room , anchor )
Called when a new anchor is added to a room.
Signature
open fun onAnchorAdded(room: MRUKRoom, anchor: Entity)
Parameters
room: MRUKRoom
  The MRUKRoom containing the anchor
anchor: Entity
  The Entity anchor that was added
onAnchorRemoved ( room , anchor )
Called when an anchor is removed from a room.
Signature
open fun onAnchorRemoved(room: MRUKRoom, anchor: Entity)
Parameters
room: MRUKRoom
  The MRUKRoom that contained the anchor
anchor: Entity
  The Entity anchor that was removed
onAnchorUpdated ( room , anchor )
Called when an anchor's properties change.
Signature
open fun onAnchorUpdated(room: MRUKRoom, anchor: Entity)
Parameters
room: MRUKRoom
  The MRUKRoom containing the anchor
anchor: Entity
  The Entity anchor that was updated
onRoomAdded ( room )
Called when a new room is discovered and added to the scene.
Signature
open fun onRoomAdded(room: MRUKRoom)
Parameters
room: MRUKRoom
  The MRUKRoom instance that was added
onRoomRemoved ( room )
Called when a room is removed from the scene.
Signature
open fun onRoomRemoved(room: MRUKRoom)
Parameters
room: MRUKRoom
  The MRUKRoom instance that was removed
onRoomUpdated ( room )
Called when an existing room's properties or anchors change.
Signature
open fun onRoomUpdated(room: MRUKRoom)
Parameters
room: MRUKRoom
  The MRUKRoom instance that was updated