mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-05 08:20:23 +00:00
Discord VC: voice channels, transcription, and TTS (#18774)
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
|
||||
@MainActor
|
||||
extension NodeAppModel {
|
||||
func permissionSnapshot() -> IOSPermissionSnapshot {
|
||||
IOSPermissionCenter.statusSnapshot()
|
||||
}
|
||||
|
||||
@discardableResult
|
||||
func requestPermission(_ permission: IOSPermissionKind) async -> IOSPermissionSnapshot {
|
||||
_ = await IOSPermissionCenter.request(permission)
|
||||
return IOSPermissionCenter.statusSnapshot()
|
||||
}
|
||||
|
||||
func openSystemSettings() {
|
||||
guard let url = URL(string: UIApplication.openSettingsURLString) else {
|
||||
return
|
||||
}
|
||||
UIApplication.shared.open(url)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user