You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like only one instance of Sensey can be created per activity (or context to be precise). Is there any way to create and attach different Sensey listeners to more than one view in a single activity?
The text was updated successfully, but these errors were encountered:
@c0state the reason Sensey uses a singleton , is because it access sensor data which are specifically hardware that you have access to. The data stream you would usually get would also be one, as the hardware is going to be one. Hence even if you had multiple listeners you would still be accessing the same data stream. In this scenario all your listeners would still fire up even if you used multiple Sensey instances.
As of current state, Sensey cannot get data stream from multiple sensors of the same type in the device, which is when this would be useful, wherein Sensey could access 2 different sensors and respond on each as the data changes.
Let me know what are your thoughts on this if this makes sense to you.
It seems like only one instance of Sensey can be created per activity (or context to be precise). Is there any way to create and attach different Sensey listeners to more than one view in a single activity?
The text was updated successfully, but these errors were encountered: