Trajectory

class Trajectory : NativeMethodsReceiver

Class representing a Trajectory. Should not be created manually, see TrajectoryManager.

Types

Companion
Link copied to clipboard
object Companion
ResultCode
Link copied to clipboard
enum ResultCode : Enum<Trajectory.ResultCode>

Functions

advance
Link copied to clipboard
fun advance(): TrajectoryPoint?

Advances to the next point in the trajectory.

callMethod
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> callMethod(clazz: Class<T>, callback: NativeMethodsReceiver.NativeCallback<T>)
getListeners
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> getListeners(clazz: Class<T>): MutableMap<T, Executor>
isValid
Link copied to clipboard
fun isValid(): Boolean

Determines if the Trajectory object is valid.

register
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> register(clazz: Class<T>, listener: T): Int
open fun <T : NativeMethodsReceiver.NativeListener> register(clazz: Class<T>, listener: T, @Nullable executor: Executor?): Int
size
Link copied to clipboard
open fun size(): Int
unregister
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> unregister(clazz: Class<T>, listener: T): Int