Contents

CPNowPlayingPlaybackRateButton

A button for cycling through the available playback rates.

Declaration

@MainActor class CPNowPlayingPlaybackRateButton

Overview

CPNowPlayingPlaybackRateButton is a concrete subclass of CPNowPlayingButton. Use the button’s handler to invoke your existing functionality for cycling through playback rates, using the same MPChangePlaybackRateCommand that you provide to MPRemoteCommandCenter.

CarPlay uses MPRemoteCommandCenter to observe changes to the playback rate and updates the button’s appearance accordingly.

See Also

Managing the Template’s Buttons