79820113

Date: 2025-11-14 14:10:27
Score: 3
Natty:
Report link

In my connect() function (which is a singleton), right after connecting I execute the device.connect.listen block that is in the FBP documentation. I pass a callback function as a parameter to my connect() function and within the listen block, I check the state and if it is "disconnect", I call cancel(), then invoke my callback function. Within the callback function I can do anything I want; snackbar, alert dialog, ...

Reasons:
  • RegEx Blacklisted phrase (1): I want
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Michael