add(_:)
Registers an observer that receives Now Playing template events.
Declaration
func add(_ observer: any CPNowPlayingTemplateObserver)Parameters
- observer:
An object that implements the Cpnowplayingtemplateobserver protocol.
Registers an observer that receives Now Playing template events.
func add(_ observer: any CPNowPlayingTemplateObserver)An object that implements the Cpnowplayingtemplateobserver protocol.