feat(player): 保持屏幕常亮并自动恢复播放

This commit is contained in:
Zhou Weidong committed 2026-10-22 10:17:43 +08:00
1 parent 5bf10221a8
commit a25c500371
7 files changed
+273 -1

No files matched your search

+1
View File
@@ -20,6 +20,7 @@ final class RunnerFlutterViewController: FlutterViewController {
_ application: UIApplication,
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
) -> Bool {
UIApplication.shared.isIdleTimerDisabled = true
return super.application(application, didFinishLaunchingWithOptions: launchOptions)
}