Package-level declarations

Sceneform nodes that render the AR objects of a LiG scene. ArBaseNode is the base of every rendered object: it applies the object's transform, loads and caches its assets, wires its events to actions, and handles pinch and rotate gestures. Each subclass renders one AR object type: image planes, 3D models, video and live streams, shapes, snow, dashboards, recommendation boards and polyhedrons. The scene creates them from the scene JSON; integrators usually reach them through SceneFormContext.ligNodeMap to add listeners or control playback. The package also holds helper nodes for navigation (arrow and waypoint markers), debug origin axes and a particle emitter. Ar360BallNode, which renders 360° video, is currently declared without a package and appears in the root package.

Types

Link copied to clipboard
class ArBallNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a sphere AR object (tw.com.lig.sdk.player.model.ArModelEnum.BALL).

Link copied to clipboard
open class ArBaseNode(var context: Context, val arObject: ArObjectModel) : LiGBaseNode

Base class of every Sceneform node that renders an AR object of a LiG scene.

Link copied to clipboard
class ArCubeNode(var context: Context, size: Vector3, color: String) : LiGBaseNode

A box node in a solid or translucent color. Not an AR object type: the scene never creates it; it is a helper the host can add itself.

Link copied to clipboard
class ArCylinderNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a cylinder AR object (tw.com.lig.sdk.player.model.ArModelEnum.CYLINDER), built from the passed-in AR object data.

Link copied to clipboard
class ArDashboardNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a sensor dashboard AR object (tw.com.lig.sdk.player.model.ArModelEnum.DASHBOARD): a view panel showing the latest readings of a farmland from a remote sensor API.

Link copied to clipboard
class ArEmitterNode(var context: Context) : LiGBaseNode

A 2D particle emitter shown in AR: a ParticleSystemView rendered on a view renderable 1 local unit wide, emitting copies of an image upward from the bottom center of the view.

Link copied to clipboard
class ArFloorNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a virtual floor AR object (tw.com.lig.sdk.player.model.ArModelEnum.FLOOR), built from the passed-in AR object data.

Link copied to clipboard
class ArModelNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a 3D model AR object (tw.com.lig.sdk.player.model.ArModelEnum.MODEL), built from the passed-in AR object data.

Link copied to clipboard
class ArOriginNode(var context: Context) : LiGBaseNode

Debug model of a coordinate origin: three axis bars from the node's origin, X in red, Y in green and Z in blue, each 0.4 long and 0.05 thick (local units).

Link copied to clipboard
class ArPlaneNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders an image plane AR object (tw.com.lig.sdk.player.model.ArModelEnum.PLANE), built from the passed-in AR object data.

Link copied to clipboard
class ArPlaneWithSizeNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a sized image AR object (tw.com.lig.sdk.player.model.ArModelEnum.PLANE_WITH_SIZE), built from the passed-in AR object data. Also used for the faces of ArSpherePolyhedronNode and the preview image of ArStreamingVideoNode.

Link copied to clipboard
class ArPreviewVideoNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a video-with-preview AR object (tw.com.lig.sdk.player.model.ArModelEnum.PREVIEW_VIDEO), built from the passed-in AR object data. Unlike ArVideoNode, this AR video object comes with its own preview image.

Link copied to clipboard
class ArRecommendNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a recommendation board AR object (tw.com.lig.sdk.player.model.ArModelEnum.RECOMMEND_BOARD): a view panel with three slots each for live rooms, related web links and navigation destinations, filled from an AI bot answer.

Link copied to clipboard
class ArrowNode(var context: Context) : LiGBaseNode

Animated arrow model used by the indoor navigation feature to point the user along the route.

Link copied to clipboard
class ArSnowNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a snowfall AR object (tw.com.lig.sdk.player.model.ArModelEnum.SNOW): flakes of the object's texture image spawn across an area and drift along the node's local +Z axis.

Link copied to clipboard
class ArSpherePolyhedron2Node(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a polyhedron AR object whose faces are AR objects of their own (tw.com.lig.sdk.player.model.ArModelEnum.NEW_POLYHEDRON2).

Link copied to clipboard
class ArSpherePolyhedronNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a polyhedron AR object (tw.com.lig.sdk.player.model.ArModelEnum.NEW_POLYHEDRON), built from the passed-in AR object data: rings of image panels around the node.

Link copied to clipboard
class ArStreamingVideoNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a live-stream AR object (tw.com.lig.sdk.player.model.ArModelEnum.STREAMING_VIDEO): an HLS stream played with ExoPlayer onto a flat plane in the node's XY plane, keeping the video's aspect ratio with its longer side 1 local unit long. When the object has a hueAngle, the same chroma key as ArVideoNode applies (see ChromaKey).

Link copied to clipboard
class ArVideoNode(var context: Context, val arObject: ArObjectModel) : ArBaseNode

Renders a video AR object (tw.com.lig.sdk.player.model.ArModelEnum.VIDEO), built from the passed-in AR object data.

Link copied to clipboard
open class LiGBaseNode(var context: Context?) : Node, Cloneable

Base Sceneform node of the player: camera facing, transparency, touch listeners, distance tracking and resource release.

Link copied to clipboard
class NextTargetNode(var context: Context) : LiGBaseNode

Marker used by the indoor navigation feature for the next waypoint or the final destination.

Link copied to clipboard
class OriginNode(var context: Context) : LiGBaseNode

Debug model of a coordinate origin: three axis bars from the node's origin, X in red, Y in green and Z in blue, each 0.4 long and 0.05 thick (local units).