Skip to main content

withingssyncservice

This class will handle the synchronisation of the Withings device in background.

WithingsSyncService.get(context).start()
WithingsSyncService.get(context).stop()

These are the functions you can use:

// add a listener to receive events linked to the synchronisation (such as device is detected or device sync has started, etc.)
fun setLister(listener: Listener?)
// start the service to synchronise the specified deviceIdentities. The most important field is the advertisingKey which will be the identifier through which the service will recognise your device.
fun start(deviceIdentities: List<WithingsDeviceIdentity>)
// stop the service
fun stop()
// get the service status
fun getState(): ServiceState
Help

Login required

Please log in to your Developer Dashboard in order to file a request.

OK