ConfigHandler

Singleton class that handles the JoosConfig annotation as well as FTC Dashboard configs for Pose2d, Vector2d, Angle, and other classes as specified by ImmutableConfigProvider and MutableConfigProvider.

Functions

Link copied to clipboard
fun addVariableToDashboard(variable: ConfigVariable<out Any>?, group: String, name: String)
Link copied to clipboard
fun <T : Any> createConfig(name: String, value: T): T

Adds the provided value to the FTC Dashboard config under the group 'Runtime'.

Link copied to clipboard
fun createVariableFromArray(array: () -> Array<*>, arrayType: KClass<*>, parent: Any, indices: IntArray): ConfigVariable<*>?
Link copied to clipboard
Link copied to clipboard
@OnCreateEventLoop
fun init(context: Context?, eventLoop: FtcEventLoop?)
Link copied to clipboard
fun parse(property: KProperty1<*, *>, parent: Any): ConfigVariable<*>?
fun parse(type: KType, getter: () -> Any?, setter: (Any?) -> Unit? = null): ConfigVariable<*>?
Link copied to clipboard
fun parseField(field: Field): ConfigVariable<out Any>?
Link copied to clipboard
fun parseProperty(property: KProperty0<Any?>): ConfigVariable<out Any>?