withingsfragment
This class implements a WebView which can handle Bluetooth javascript functions.
WithingsFragment.newInstance(myInstallUrl)
WithingsFragment.newInstance(myDevicesUrl, accessToken)
These are the functions you can use:
// load new URL provided in the WebView
fun loadUrl(url: String, accessToken: String? = null)
// go back in history
fun goBack()
// return true if there is a history
fun canGoBack(): Boolean
// add a callback to intercept change of URL
fun setUrlInterceptor(interceptor: UrlInterceptor?)
// add a callback for receiving a notification: (see the notification section)
fun setNotificationListener(notificationListener: NotificationListener?)
// add a callback which will be called when the WebView wants to be closed
fun setCloseIntentListener(closeIntentListener: CloseIntentListener?)
// is true when a Withings operation is currently ongoing
val isBusy: Boolean
Notification section: SDK Notifications