22 lines
691 B
Swift
22 lines
691 B
Swift
import Foundation
|
|
import FlutterMacOS
|
|
|
|
/// macOS stub - BLE peripheral mode not yet implemented.
|
|
public class BlePlugin: NSObject, FlutterPlugin {
|
|
public static func register(with registrar: FlutterPluginRegistrar) {
|
|
let channel = FlutterMethodChannel(
|
|
name: "com.dalimaster.ble",
|
|
binaryMessenger: registrar.messenger)
|
|
let instance = BlePlugin()
|
|
registrar.addMethodCallDelegate(instance, channel: channel)
|
|
}
|
|
|
|
public func handle(_ call: FlutterMethodCall, result: @escaping FlutterResult) {
|
|
switch call.method {
|
|
case "isSupported":
|
|
result(false)
|
|
default:
|
|
result(nil)
|
|
}
|
|
}
|
|
} |