addPlayer
TypeScriptaddPlayer(player: _AVFoundation_AVPlayer): voidSwift declarationfunc addPlayer(_ player: AVPlayer)class · iOS 16.0+ · SDK 27.1
class MPNowPlayingSessionaddPlayer(player: _AVFoundation_AVPlayer): voidSwift declarationfunc addPlayer(_ player: AVPlayer)becomeActiveIfPossible(completion?: (((arg0: boolean) => void)) | null): voidSwift declarationfunc becomeActiveIfPossible() async -> Boolstatic init(players: Array<_AVFoundation_AVPlayer>): MPNowPlayingSessionSwift declarationinit(players: [AVPlayer])removePlayer(player: _AVFoundation_AVPlayer): voidSwift declarationfunc removePlayer(_ player: AVPlayer)get isActive(): booleanSwift declarationvar isActive: Bool { get }get automaticallyPublishesNowPlayingInfo(): booleanSwift declarationvar automaticallyPublishesNowPlayingInfo: Bool { get set }set automaticallyPublishesNowPlayingInfo(value: boolean)Swift declarationvar automaticallyPublishesNowPlayingInfo: Bool { get set }get canBecomeActive(): booleanSwift declarationvar canBecomeActive: Bool { get }get delegate(): (SDKHandle) | nullSwift declarationweak var delegate: (any MPNowPlayingSessionDelegate)? { get set }set delegate(value: (Implements<MPNowPlayingSessionDelegate> | SDKHandle) | null)Swift declarationweak var delegate: (any MPNowPlayingSessionDelegate)? { get set }get nowPlayingInfoCenter(): MPNowPlayingInfoCenterSwift declarationvar nowPlayingInfoCenter: MPNowPlayingInfoCenter { get }get players(): Array<_AVFoundation_AVPlayer>Swift declarationvar players: [AVPlayer] { get }get remoteCommandCenter(): MPRemoteCommandCenterSwift declarationvar remoteCommandCenter: MPRemoteCommandCenter { get }1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
MPNowPlayingSession.init()
inherited init: cannot prove legal (class declares 1 custom initializer)