Skip to main content

ARManager

class ARManager

ARManager that manages AR sessions

constructor

new ARManager(view3D)

Create a new instance of the ARManager

PARAMETERTYPEOPTIONALDEFAULTDESCRIPTION
view3DView3DAn instance of the View3D

Methods

isAvailable

async

Return a Promise containing whether any of the added session is available
If any of the AR session in current environment, this will return true

Returns: Promise<boolean>

  • Availability of the AR session

enter

async

Enter XR Session.
This should be called from a user interaction.

Returns: Promise<void>

exit

async

Exit current XR Session.