feat(ios): add iOS 26+ continued processing and Live Activities (#1514)

This commit is contained in:
UltraGeek0102 authored and GitHub committed 2026-09-15 22:49:11 +08:00
1 parent cee5f3336e
commit e47a20a1bd
18 files changed
+2983 -3

No files matched your search

@@ -0,0 +1,39 @@
import 'dart:io';
import 'package:flutter/services.dart';
class ContinuedProcessing {
const ContinuedProcessing._();
static const _channel =
MethodChannel('gopeed/continued_processing');
static Future<bool> isSupported() async {
if (!Platform.isIOS) return false;
try {
return await _channel.invokeMethod<bool>(
'isSupported',
) ??
false;
} catch (_) {
return false;
}
}
static Future<bool> setEnabled(
bool enabled,
) async {
if (!Platform.isIOS) return false;
try {
return await _channel.invokeMethod<bool>(
'setEnabled',
{'enabled': enabled},
) ??
false;
} catch (_) {
return false;
}
}
}