DeviceChangeObserver

@objc
public protocol DeviceChangeObserver

DeviceChangeObserver listens to the change of Audio Device.

  • Called when listAudioDevices() output changed In another word, when a new media device become available or old media device become unavailable

    Note: this callback will be called on main thread.

    Declaration

    Swift

    func audioDeviceDidChange(freshAudioDeviceList: [MediaDevice])

    Parameters

    freshAudioDeviceList

    updated list of available devices