Initial commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
import Foundation
|
||||
import FlutterMacOS
|
||||
|
||||
/// macOS stub — BLE peripheral mode not yet implemented.
|
||||
public class BleRelayHostPlugin: NSObject, FlutterPlugin {
|
||||
public static func register(with registrar: FlutterPluginRegistrar) {
|
||||
let channel = FlutterMethodChannel(
|
||||
name: "com.dalimaster.ble_relay_host",
|
||||
binaryMessenger: registrar.messenger)
|
||||
let instance = BleRelayHostPlugin()
|
||||
registrar.addMethodCallDelegate(instance, channel: channel)
|
||||
}
|
||||
|
||||
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
||||
switch call.method {
|
||||
case "isSupported":
|
||||
result(false)
|
||||
default:
|
||||
result(nil)
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user