app/lib/common/rust/api/win32_api.dart
2025-11-13 20:07:47 +08:00

16 lines
603 B
Dart
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Web platform stub for win32_api
// Windows API 在 Web 平台上不可用,提供空实现
/// 发送系统通知Web 平台使用控制台输出)
Future<void> sendNotify({String? summary, String? body, String? appName, String? appId}) async {
print('Notification: $summary - $body');
// Web 平台可以使用浏览器 Notification API
// 但需要用户授权,这里简化处理
}
/// 设置窗口为前台Web 平台不支持)
Future<bool> setForegroundWindow({required String windowName}) async {
print('setForegroundWindow not supported on web platform');
return false;
}