de.unikassel.android.sdcframework.broadcast.facade
Interface SampleBroadcastService
- All Superinterfaces:
- AsynchrounousSampleObserver, DelegatingSampleObserver, LifeCycleObject, WorkerThread
- All Known Implementing Classes:
- SampleBroadcastServiceImpl
public interface SampleBroadcastService
- extends AsynchrounousSampleObserver
Interface for the sample broadcast service class.
It's main purpose is to observe the sensor device manager for samples. It
does collect the observed samples in a thread safe queue while running an
asynchronous broadcast service, which does broadcast the collected samples in
the form of Intents to the system. That way the main framework thread will
not be occupied by sample processing tasks.
The dispatcher thread is a worker thread, which can be started, stopped and
restarted if necessary.
- See Also:
SensorDeviceManager
Method Summary |
void |
updateFrequency(long frequency)
Method to update the frequency of broadcasts in milliseconds (>= 0 ms). |
updateFrequency
void updateFrequency(long frequency)
- Method to update the frequency of broadcasts in milliseconds (>= 0 ms).
- Parameters:
frequency
- the new frequency value