Contents

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) -> MediaCommand

Parameters

  • current:

    The current repeat mode.

  • supported:

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

  • action:

    The closure the system calls to change the repeat mode.

See Also

Changing playback modes