ResetListener

object ResetListener : OpModeManagerNotifier.Notifications

A listener that resets all Resettable variables each time an opmode begins initializing.

You don't need to access this object manually. It is automatically called by the OpModeManagerNotifier when the "Init" button is pressed, but before any other user-defined code is ran. This means that APIs and opmodes can rely on their Resettable properties always being reset.

History

This API used to be called Reset. It acted like an API but you needed to call its Reset.init(this) method first in opmode initialization or other APIs would break. It was revised in #46 to automatically run, so that nothing would break if someone forgot to write Reset.init.

Functions

Link copied to clipboard
open override fun onOpModePostStop(opMode: OpMode)
Link copied to clipboard
open override fun onOpModePreInit(opMode: OpMode)
Link copied to clipboard
open override fun onOpModePreStart(opMode: OpMode)
Link copied to clipboard
@OnCreateEventLoop
fun register(context: Context, ftcEventLoop: FtcEventLoop)