changeRepeatMode(current:supported:_:)
Creates a command that changes the repeat mode for media playback.
Declaration
static func changeRepeatMode(current: MediaCommand.RepeatMode, supported: [MediaCommand.RepeatMode]? = nil, _ action: @escaping (MediaCommand.RepeatMode) async throws -> Void) -> MediaCommandParameters
- current:
The current repeat mode.
- supported:
The supported repeat modes. Pass
nilto support all modes. - action:
The closure the system calls to change the repeat mode.