Ar Action Enum
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
Show shop information; no built-in handler, forwarded to the host app.
Show a 2D view; no built-in handler, forwarded to the host app.
Deprecated rotation; ArActionModel.create returns null, so it is ignored. Use ROTATE_BY.
Show an image or video player; no built-in handler, forwarded to the host app.
Play or pause the target node's video.
Enable (show) the AR object obj_id, or the owning node when obj_id is absent, and its shadow.
Disable (hide) the AR object obj_id, or the owning node when obj_id is absent.
Set the playback speed ratio of the target 3D model's animations.
Set the frame range (start_frame..end_frame at fps) of the target 3D model's animation and toggle play/pause.
Set the repeat count of the target 3D model's animation and start it.
Change the target node's alpha by transparency (relative) over time seconds.
Animate the target node's alpha to transparency (absolute) over time seconds.
Move the target node along a circular orbit of radius from start_angle to end_angle.
Move the target node in front of the camera, optionally returning afterwards.
Play the audio file at url (downloaded to the cache when the action is registered).
Vibrate the device with the style in impact_feedback_style (see VibrateTypeEnum).
Switch to the scene scene_id, optionally repositioning it to the camera.
Stop the target 3D model's animation.
Make the node not selectable by hit tests.
Make the node selectable by hit tests again.
Return to the previously shown scene and restore the previous scene origin.
Start indoor navigation to the mark named destination.
Stop indoor navigation.
Open the scene introduction and 360 panorama; no built-in handler, forwarded to the host app.
Grant a reward and photo frame; no built-in handler, forwarded to the host app.
Show a photo frame.
Types
Properties
Functions
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.)
Returns an array containing the constants of this enum type, in the order they're declared.