LivelinkProvider
@3dverse/livelink-react v0.2.32
@3dverse/livelink-react / LivelinkProvider
Function: LivelinkProvider()
LivelinkProvider(
params
):JSX.Element
Defined in: livelink.react/sources/components/core/Livelink.tsx:143
Provides the Livelink context and manages the lifecycle of a Livelink connection.
This component initializes and maintains a connection to the Livelink service and supplies relevant connection state and methods to its children via context.
Parameters
params
PropsWithChildren
<{ sessionOpenMode
: "join"
| "start"
| "join-or-start"
; sessionId
: UUID
; sceneId
: UUID
; isTransient
: boolean
; token
: string
; LoadingPanel
: ComponentType
<{ stage
: string
; }>; InactivityWarningPanel
: ComponentType
<{ warningDuration
: number
; onActivityDetected
: () => void
; }>; ConnectionErrorPanel
: ComponentType
<{ error
: string
; }>; }>
Returns
JSX.Element