Contents

CPNowPlayingAddToLibraryButton

A button for adding the current playing item to a collection.

Declaration

@MainActor class CPNowPlayingAddToLibraryButton

Overview

CPNowPlayingAddToLibraryButton is a concrete subclass of CPNowPlayingButton. Use this button to allow a user to add the current playing item to a collection, such as their library. You implement this functionality in the button’s handler, or use the handler to invoke existing code that performs this function.

See Also

Managing the Template’s Buttons