BunyipsComponent

abstract class BunyipsComponent

Base class for components used with a BunyipsOpMode. This allows injection of the OpMode into the component, and provides a common base for all components.

Author

Lucas Bubner, 2024

Since

1.0.0-pre

Inheritors

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
Get a reference to the currently running BunyipsOpMode.

Functions

Link copied to clipboard
protected fun opMode(@NonNull ifRunning: Consumer<BunyipsOpMode>)
Null check consumer for the opMode field which will no-op the given consumer if an active BunyipsOpMode is not present (i.e.
Link copied to clipboard
protected fun require(@Nullable nullableOpMode: BunyipsOpMode): BunyipsOpMode
Null assertion for the opMode field which throws a NullPointerException if an active BunyipsOpMode is not present (i.e.