withingswebview
Class
WithingsWebView
This is an enhanced WKWebView with Web Bluetooth protocol enabled. It allows communication between the WebView and BLE devices.
Declaration
class WithingsWebView: WKWebView
Init
public init(frame: CGRect, configuration: WKWebViewConfiguration, polyfillJs: String? = nil, notificationCallback: @escaping ((WithingsWebViewNotification) -> Void))
Please ignore the polyfillJs
parameter, as it is required for very specific advanced uses that you probably won't need.