AnimationSynchronizer

class AnimationSynchronizer

Used to synchronize map camera and puck animators and provide single endpoint to send data to core.

Types

Companion
Link copied to clipboard
object Companion

Static methods and variables.

Functions

sendCameraUpdate
Link copied to clipboard
fun sendCameraUpdate(frameTimeNanos: Long, cameraOptions: CameraOptions)

Send map camera update.

sendPuckBearingUpdate
Link copied to clipboard
fun sendPuckBearingUpdate(frameTimeNanos: Long, bearing: Double)

Send puck bearing update.

sendPuckPositionUpdate
Link copied to clipboard
fun sendPuckPositionUpdate(frameTimeNanos: Long, position: Point)

Send puck position update.

Properties

expectingCamera
Link copied to clipboard
var expectingCamera: Boolean = false

Whether map camera animator update is expected to apply to rendering engine as part of common state.

expectingPuckBearing
Link copied to clipboard
var expectingPuckBearing: Boolean = false

Whether puck bearing animator update is expected to apply to rendering engine as part of common state.

expectingPuckPosition
Link copied to clipboard
var expectingPuckPosition: Boolean = false

Whether puck position animator update is expected to apply to rendering engine as part of common state.

puckAnimatorDataApplier
Link copied to clipboard
var puckAnimatorDataApplier: PuckAnimatorDataApplier? = null

Interface for updating puck animator values. For internal usage.