ArActionEnum

Action type codes of an AR object, as carried in the id field of a scene action (tw.com.lig.sdk.player.model.arObject.arEvents.ArAction.id).

ArActionModel.create maps each code to the action class that executes it. Codes with no built-in handler (for example DISPLAY_SHOP, DISPLAY_2D_VIEW, DISPLAY_IMAGE_OR_VIDEO, OPEN_WEB_INFO_PANORAMA, GET_VOUCHER) and codes not listed here are forwarded to the host app through SceneFormContext.actionListener.

Author

Raymond Yang

Entries

Link copied to clipboard

Show shop information; no built-in handler, forwarded to the host app.

Link copied to clipboard

Show a 2D view; no built-in handler, forwarded to the host app.

Link copied to clipboard

Move the target node by (direction_x, direction_y, direction_z) over time seconds.

Link copied to clipboard

Deprecated rotation; ArActionModel.create returns null, so it is ignored. Use ROTATE_BY.

Link copied to clipboard

Show an image or video player; no built-in handler, forwarded to the host app.

Link copied to clipboard

Play or pause the target node's video.

Link copied to clipboard

Enable (show) the AR object obj_id, or the owning node when obj_id is absent, and its shadow.

Link copied to clipboard

Open url in an in-app web view bottom sheet.

Link copied to clipboard

Disable (hide) the AR object obj_id, or the owning node when obj_id is absent.

Link copied to clipboard

Set the playback speed ratio of the target 3D model's animations.

Link copied to clipboard

Set the frame range (start_frame..end_frame at fps) of the target 3D model's animation and toggle play/pause.

Link copied to clipboard

Set the repeat count of the target 3D model's animation and start it.

Link copied to clipboard

Rotate the target node by (direction_x, direction_y, direction_z) degrees over time seconds.

Link copied to clipboard

Wait delay_time seconds. Actions in one group run concurrently, so this delays only the next group.

Link copied to clipboard

Scale the target node by the factor scale (multiplied with its current scale) over time seconds.

Link copied to clipboard

Fade the target node in from alpha 0 to 1 over time seconds.

Link copied to clipboard

Fade the target node out from alpha 1 to 0 over time seconds; it stays non-selectable afterwards.

Link copied to clipboard

Change the target node's alpha by transparency (relative) over time seconds.

Link copied to clipboard

Animate the target node's alpha to transparency (absolute) over time seconds.

Link copied to clipboard

Move the target node along a width x height rectangle.

Link copied to clipboard

Move the target node along a circular orbit of radius from start_angle to end_angle.

Link copied to clipboard

Move the target node in front of the camera, optionally returning afterwards.

Link copied to clipboard

Play the audio file at url (downloaded to the cache when the action is registered).

Link copied to clipboard

Vibrate the device with the style in impact_feedback_style (see VibrateTypeEnum).

Link copied to clipboard

Switch to the scene scene_id, optionally repositioning it to the camera.

Link copied to clipboard

Pass the action name to the host app through SceneFormContext.uiActionListener.

Link copied to clipboard

Call the games API for the target AR object (see SceneFormContext.callGameAPI).

Link copied to clipboard

Move toward the AR object target, stopping offset short of it, over duration seconds.

Link copied to clipboard

Turn the node to face the AR object target, or the camera when target is 0.

Link copied to clipboard

Stop the target 3D model's animation.

Link copied to clipboard

Make the node not selectable by hit tests.

Link copied to clipboard

Make the node selectable by hit tests again.

Link copied to clipboard

Open a panorama; passes info_url and panorama_url to SceneFormContext.panoramaActionListener.

Link copied to clipboard

Detach the target node from its parent (removes it from the scene).

Link copied to clipboard

Record speech, send it to the AI bot, speak the answer and update the recommendation board.

Link copied to clipboard

Return to the previously shown scene and restore the previous scene origin.

Link copied to clipboard

Start indoor navigation to the mark named destination.

Link copied to clipboard

Stop indoor navigation.

Link copied to clipboard

Open the scene introduction and 360 panorama; no built-in handler, forwarded to the host app.

Link copied to clipboard

Grant a reward and photo frame; no built-in handler, forwarded to the host app.

Link copied to clipboard

Show a photo frame.

Types

Link copied to clipboard
object Companion

Lookup from the numeric code used in the scene and API payloads.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val type: Int

The numeric code used in the scene JSON.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.