scanner
LiG scanner SDK for the phone's own camera, published as tw.com.lig:scanner. It finds LigTag devices in the camera image and reports each tag's decoded device ID and its 6DoF pose relative to the camera, so AR apps can anchor content at the tag. Detection runs in LiG's native engine, which ships as a separate dependency; this module drives the Camera2 camera and the scanner lifecycle.
Where to start: LiGScanner is the only entry point. Set its onStatusReported callback, call initialize with your product key, and wait for DEVICE_IS_SUPPORTED. Then call start and read results from onLigtagFound or ligTagFlow. Call stop when done, and wait for SCANNER_STOPPED before giving the camera to ARCore. If the server has no camera adaptation for the phone (NO_SUPPORT_DEVICE with NoSupportReason.NOT_ADAPTED), initializeFallback runs the scanner with intrinsics the app supplies. To place AR content, pass the AR camera pose for the same frame to LigTag.transform.
The app needs the CAMERA permission and network access. Supported devices are arm64-v8a only, Android 7.0 (API 24) or later.
For USB (UVC) cameras, use the separate tw.com.lig:scanner-uvc artifact instead.
Packages
The scanner entry point LiGScanner and the types it returns. LigTag is one detection result, with progress flags (detected, decoded, validPose, isReady) and a camera-relative pose. SdkException.StatusCode lists every status the scanner reports and says which ones this scanner emits. FallbackConfig, Intrinsics and CaptureParams describe a host-supplied camera setup for initializeFallback, and NoSupportReason explains a NO_SUPPORT_DEVICE result. Transform, Vector3, Vector4 and Quaternion are the small math types used for poses.