mac/remote: move class local struct and enum definition to extension

the class local struct and enum are moved to an extension to separate
their definition and usage.
This commit is contained in:
der richter committed 2024-02-15 00:11:55 +01:00
1 parent 80cde2671c
commit 1883f2f7a0
1 file changed
+3 -1
+3 -1
View File
@@ -17,7 +17,7 @@
import MediaPlayer
class RemoteCommandCenter: NSObject {
extension RemoteCommandCenter {
enum KeyType {
case normal
case repeatable
@@ -33,7 +33,9 @@ class RemoteCommandCenter: NSObject {
self.type = type
}
}
}
class RemoteCommandCenter: NSObject {
var configs: [MPRemoteCommand:Config] = [
MPRemoteCommandCenter.shared().pauseCommand: Config(key: MP_KEY_PAUSEONLY),
MPRemoteCommandCenter.shared().playCommand: Config(key: MP_KEY_PLAYONLY),