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) -> MediaCommandParameters
- current:
The current shuffle mode.
- supported:
The supported shuffle modes. Pass
nilto support all modes. - action:
The closure the system calls to change the shuffle mode.