I am using MPVolumeView for showing Airplay icon and it works fine.
But I need to show an animation when Airplay network comes, and hide that animation when airplay net
6 years later. I think Sankar Siva did not ask for detecting, but for activating an airplay route.
I've upped @Alf because he placed me on the right direction, but he is not answering to the question.
MPVolumeViewWirelessRoutesAvailableDidChangeNotification
fires when MPVolumeView detects a new route.
On the other hand, MPVolumeViewWirelessRouteActiveDidChangeNotification
fires when a new route is taken, eg: when you select your Apple TV for example.
No need of private API.