CameraMotionListener


@UnstableApi
interface CameraMotionListener


Listens camera motion.

Summary

Public functions

Unit
onCameraMotion(timeUs: Long, rotation: FloatArray!)

Called when a new camera motion is read.

Unit

Called when the camera motion track position is reset or the track is disabled.

Public functions

onCameraMotion

fun onCameraMotion(timeUs: Long, rotation: FloatArray!): Unit

Called when a new camera motion is read. This method is called on the playback thread.

Parameters
timeUs: Long

The presentation time of the data.

rotation: FloatArray!

Angle axis orientation in radians representing the rotation from camera coordinate system to world coordinate system.

onCameraMotionReset

fun onCameraMotionReset(): Unit

Called when the camera motion track position is reset or the track is disabled.