PlanetKitAudioRouteChangeDelegate
@objc
public protocol PlanetKitAudioRouteChangeDelegate
A delegate protocol for receiving notifications about changes in the audio route.
Implement this protocol to handle updates when the audio route changes, such as switching between different audio output devices (e.g., handset, speakerphone, headset).
-
Called when the audio route has changed.
Declaration
Swift
func didAudioRouteChange(current: PlanetKitAudioRoute, previous: PlanetKitAudioRoute)
Parameters
audioRoute
The new audio route, represented by a
PlanetKitAudioRoute
value.