UIViewController instance method
presentWithingsWebView(url:notificationCallback)
Presents a view controller modally to install or configure Withings products.
Declaration
func presentWithingsWebView(
url: URLRequest,
notificationCallback: ((UIViewController, WithingsWebViewNotification)->Void)?
)
Parameters
url
This is your backend's URLRequest to authenticate the user and redirect them to the Withings installation or settings WebView.
notificationCallback
The block to execute when an event occurs inside the WebView. This block has no return value.
It takes the presented UIViewController and the notification WithingsWebViewNotification as parameters.
Please refer to the notifications list to find out if you have to dismiss the UIViewController.