togglePlayPause(_:)
Creates a command that toggles between play and pause states.
Declaration
static func togglePlayPause(_ action: @escaping () async throws -> Void) -> MediaCommandParameters
- action:
The closure the system calls to toggle playback.