Open winter-yuki opened 4 years ago
Rewrite as singleton
must provide methods:
createInstance(context, ...) trySend(String s)
Also this class must contain variables eventReceiveSymbol and eventJoystickSignal. Their change should trigger some events in the app (this class is unaware of those events, triggers must be added from outside)
eventReceiveSymbol
eventJoystickSignal
At least it should do nothing if Braille Trainer is not connected. And it should be obvious from code.
Also, the factory is needed, too much boilerplate code during initialization.
Rewrite as singleton
must provide methods:
Also this class must contain variables
eventReceiveSymbol
andeventJoystickSignal
. Their change should trigger some events in the app (this class is unaware of those events, triggers must be added from outside)