Contents

init(handler:)

Creates a Now Playing button that invokes a handler.

Declaration

init(handler: ((CPNowPlayingButton) -> Void)? = nil)

Parameters

  • handler:

    A closure that the button invokes when the user taps it.