setIsNowPlayingCandidate(_:)
Sets a Boolean value that indicates whether the audio session is a candidate to be the Now Playing session.
Declaration
func setIsNowPlayingCandidate(_ inValue: Bool) throwsParameters
- inValue:
The new state to set.
Discussion
Only a single audio session for an app can be a Now Playing candidate. Designating multiple audio sessions for the same app as Now Playing candidates results in none of them being eligible.