Package-level declarations

Functions

Link copied to clipboard
inline fun <T> JsonObjectBuilder.add(metadata: T)

We are "adding" our 'add' function to Kotlin's built-in 'JsonObjectBuilder'.

Link copied to clipboard
fun Pose.calculateHorizontalDistanceTo(pose: Pose): Float

Calculate horizontal distance to another pose.

Link copied to clipboard
inline fun <T> JsonObject.concat(data: T, json: Json = Json): JsonObject

Concats the fields of a serializable data class data into this JsonObject.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun Pose.relativeDifference(pose: Pose): Pose
Link copied to clipboard
fun Float.roundedTo(decimalPlaces: Int): Float
Link copied to clipboard
fun Uri.sanitize(mustContain: String? = null): Uri?
Link copied to clipboard
Link copied to clipboard
fun List<*>.toJsonArray(): JsonArray

Converts a standard List to a JsonArray for internal API calls.

Link copied to clipboard
fun Map<String, Any?>.toJsonObject(): JsonObject

Converts a standard Map to a JsonObject for internal API calls.

Link copied to clipboard
fun JsonObject.toMap(): Map<String, Any?>

Converts a JsonObject back to a Map for public SDK consumption.