Use the channel finder CSensrvChannelFinder
to listen for new channels installed to the system or old channels
removed.
Use the method SetChannelListenerL()
to start and stop the listening.
When channel change occurs, a ChannelChangeDetected()
notification is delivered
via the channel listener callback interface MSensrvChannelListener
.
There is one restriction on the ChannelChangeDetected()
notification:
If a sensor changes the existing channel registration, there must be an open
channel to that sensor to prevent the sensor driver from unloading.
In practise, this means that at least one channel from this sensor must have a client to keep the channel open and sensor driver loaded. If the sensor driver is unloaded while new channels become available, it cannot notify of new channels until some existing channel opening causes the sensor driver to be reloaded.