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.
Creates a Now Playing button that invokes a handler.
init(handler: ((CPNowPlayingButton) -> Void)? = nil)A closure that the button invokes when the user taps it.