Refactor Channel settings
|Assignee:||Espen Solbu||% Done:|
|Target version:||2.0 Multiple models|
Should have setters and getters, writing from and to settings storage.
Also run "Get from settings" upon creation..
#2 Updated by Espen Solbu over 6 years ago
Listen to all channel updates?
Listen to my source channel updates?
-> Register listener for "biz.onomato.frskydash.update.channel."+id
inValue = intent.getFloatExtra("channelValue");
Needs understanding of "id"
PRO: Would listen to only relevant source channels
Very little involved in picking up the value from a channel
More loosely coupled than dedicated listeners
CON: Many broadcasts vs dedicated listeners
Broadcast count will increase by number of channels
Maintain channel id
Channel aware of listeners? not broadcast if no listeners?