Atoll/DynamicIsland/MediaControllers/MediaControllerProtocol.swift
Hariharan Mudaliar 13a2ff0e20 Working
2025-07-13 22:16:02 +05:30

21 lines
461 B
Swift

//
// MediaControllerProtocol.swift
// DynamicIsland
//
// Created by Alexander Greco on 2025-03-29.
//
import Foundation
import AppKit
protocol MediaControllerProtocol: ObservableObject {
var playbackStatePublisher: Published<PlaybackState>.Publisher { get }
func play()
func pause()
func seek(to time: Double)
func nextTrack()
func previousTrack()
func togglePlay()
func isActive() -> Bool
func updatePlaybackInfo()
}