Contents

play(_:)

Creates a command that starts media playback.

Declaration

static func play(_ action: @escaping () async throws -> Void) -> MediaCommand

Parameters

  • action:

    The closure the system calls to start playback.

See Also

Controlling playback