Contents

changeShuffleMode(current:supported:_:)

Creates a command that changes the shuffle mode for media playback.

Declaration

static func changeShuffleMode(current: MediaCommand.ShuffleMode, supported: [MediaCommand.ShuffleMode]? = nil, _ action: @escaping (MediaCommand.ShuffleMode) async throws -> Void) -> MediaCommand

Parameters

  • current:

    The current shuffle mode.

  • supported:

    The supported shuffle modes. Pass nil to support all modes.

  • action:

    The closure the system calls to change the shuffle mode.

See Also

Changing playback modes