Contents

CPNowPlayingRepeatButton

A button for cycling through the available repeat modes.

Declaration

@MainActor class CPNowPlayingRepeatButton

Overview

CPNowPlayingRepeatButton is a concrete subclass of CPNowPlayingButton. Use the button’s handler to invoke your existing functionality for cycling through repeat modes, using the same MPChangeRepeatModeCommand that you provide to MPRemoteCommandCenter.

CarPlay uses MPRemoteCommandCenter to observe changes to the repeat mode and updates the button’s appearance accordingly.

See Also

Managing the Template’s Buttons