I don’t want to remove the widget from view, I just want to temporarily inactivate it until one of my functions specifies it to resume “listening” for user input. So I’m thinking I need to do something similar to disabling the event listener for my widget.newSwitch (onOff slider button). However, I don’t know what the coding for the widget looks like, otherwise I was thinking I might be able to play around with some of the variables that it uses.
Any ideas?
Here’s the link to the doc:
https://docs.coronalabs.com/api/library/widget/newSwitch.html
, I guess it internally rounds that to 0. I found that 0.01 was the smallest non-zero alpha value you could use.