FLUTTER ECOSYSTEM

rohitsangwan01/web_view_ble

在 WebView Flutter 中新增藍牙低耗能支援

web_view_ble 專案封面
Stars
4
Forks
4
最近推送(UTC)
2024年7月15日
專案狀態
未封存
Rohit Sangwan GitHub avatar
GITHUB User

Rohit Sangwan ↗

Haryana India
語言JavaScriptDartRubySwiftKotlinObjective-C

此儲存庫發佈的套件

使用的依賴

依賴清單 5 項

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

展開 / 收合專案 README

WebView Ble

web_view_ble version

Flutter library To add Bluetooth Low Energy Support in WebView Flutter

Getting Started

Using flutter_inappwebview for WebView, Make sure to Check their docs for setting up WebView

And universal_ble for bluetooth, check docs for platform specific setup

Usage

Make sure to ask bluetooth permission first, check universal_ble for more details

In your onLoadStop callback of flutter_inappwebview , add this method

WebViewBle.setup(controller: controller, context: context);

Dispose when not needed anymore

WebViewBle.dispose();

Checkout /example for more details

Features

The web_view_ble lib supports the following bluetooth Api's:

  • Request Device (Filters : ServiceId , name , namePrefix, manufacturerData)
  • Connect
  • Disconnect
  • Discover services
  • Discover characteristics
  • Read/Write
  • Subscribe/Unsubscribe
  • GetAvailability / AvailabilityChanged events

Attribution

Thanks to WebBle for Ble javascript Polyfill, This project is licensed under the Apache Version 2.0 License as per the LICENSE file.

Additional information

This is Just The Initial Version feel free to Contribute or Report any Bug!