mirror of
https://github.com/lifegpc/eh_downloader_flutter.git
synced 2026-07-08 01:30:28 +08:00
Check token info and update to new info
This commit is contained in:
@@ -136,6 +136,18 @@ class MainFlutterWindow: NSWindow {
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
}
|
||||
|
||||
let deviceChannel = FlutterMethodChannel(
|
||||
name: "lifegpc.eh_downloader_flutter/device",
|
||||
binaryMessenger: flutterViewController.engine.binaryMessenger)
|
||||
deviceChannel.setMethodCallHandler { (call, result) in
|
||||
switch call.method {
|
||||
case "deviceName":
|
||||
result(Host.current().localizedName)
|
||||
default:
|
||||
result(FlutterMethodNotImplemented)
|
||||
}
|
||||
}
|
||||
|
||||
RegisterGeneratedPlugins(registry: flutterViewController)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user