How do I run the following code from the onKey function within my Behavior Delegate ?
dc.setColor(Gfx.COLOR_BLACK, Gfx.COLOR_BLACK);
dc.clear();
dc.setColor(Gfx.COLOR_WHITE, Gfx.COLOR_TRANSPARENT );
I get .. an error.
Could not find symbol dc.
Symbol Not Found Error
I did add .. using Toybox.Graphics as Gfx;
but it makes no difference.
I do not know anything about objects, methods or classes. :(
I can put a flag in there in put this code in onUpdate but I would prefer not to as it takes time for that to process, and this is time sensitive and I would rather have the code run upon the button being pressed immediately.