shared
TypeScriptstatic get shared(): Promise<CPNowPlayingTemplate>Swift declarationclass var shared: CPNowPlayingTemplate { get }class · iOS 14.0+ · SDK 27.1
@MainActor class CPNowPlayingTemplatestatic get shared(): Promise<CPNowPlayingTemplate>Swift declarationclass var shared: CPNowPlayingTemplate { get }add(observer: Implements<CPNowPlayingTemplateObserver> | SDKHandle): Promise<void>Swift declarationfunc add(_ observer: any CPNowPlayingTemplateObserver)remove(observer: Implements<CPNowPlayingTemplateObserver> | SDKHandle): Promise<void>Swift declarationfunc remove(_ observer: any CPNowPlayingTemplateObserver)updateNowPlayingButtons(nowPlayingButtons: Array<CPNowPlayingButton>): Promise<void>Swift declarationfunc updateNowPlayingButtons(_ nowPlayingButtons: [CPNowPlayingButton])get isAlbumArtistButtonEnabled(): Promise<boolean>Swift declarationvar isAlbumArtistButtonEnabled: Bool { get set }setIsAlbumArtistButtonEnabled(value: boolean): Promise<void>Swift declarationvar isAlbumArtistButtonEnabled: Bool { get set }get allowsMiniPlayer(): Promise<boolean>Swift declarationvar allowsMiniPlayer: Bool { get set }setAllowsMiniPlayer(value: boolean): Promise<void>Swift declarationvar allowsMiniPlayer: Bool { get set }get nowPlayingButtons(): Promise<Array<CPNowPlayingButton>>Swift declarationvar nowPlayingButtons: [CPNowPlayingButton] { get }get nowPlayingMode(): Promise<(CPNowPlayingMode) | null>Swift declarationvar nowPlayingMode: CPNowPlayingMode? { get set }setNowPlayingMode(value?: (CPNowPlayingMode) | null): Promise<void>Swift declarationvar nowPlayingMode: CPNowPlayingMode? { get set }get isUpNextButtonEnabled(): Promise<boolean>Swift declarationvar isUpNextButtonEnabled: Bool { get set }setIsUpNextButtonEnabled(value: boolean): Promise<void>Swift declarationvar isUpNextButtonEnabled: Bool { get set }get upNextTitle(): Promise<string>Swift declarationvar upNextTitle: String { get set }setUpNextTitle(value: string): Promise<void>Swift declarationvar upNextTitle: String { get set }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
CPNowPlayingTemplate.init()
inherited init: clang: 'init' is unavailable