mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
24 lines
597 B
Swift
24 lines
597 B
Swift
//
|
|
// MediaControllerProtocol.swift
|
|
// DynamicIsland
|
|
//
|
|
// Created by Alexander Greco on 2025-03-29.
|
|
//
|
|
|
|
import Foundation
|
|
import Combine
|
|
|
|
protocol MediaControllerProtocol: ObservableObject {
|
|
var playbackStatePublisher: AnyPublisher<PlaybackState, Never> { get }
|
|
var isWorking: Bool { get }
|
|
func play() async
|
|
func pause() async
|
|
func seek(to time: Double) async
|
|
func nextTrack() async
|
|
func previousTrack() async
|
|
func togglePlay() async
|
|
func toggleShuffle() async
|
|
func toggleRepeat() async
|
|
func isActive() -> Bool
|
|
func updatePlaybackInfo() async
|
|
}
|