PlanetKitAudioDeviceVolumeDelegate
@objc
public protocol PlanetKitAudioDeviceVolumeDelegate
A delegate protocol for receiving updates on the volume level of a PlanetKit audio device.
-
Notifies the audio volume level at every interval seconds.
Declaration
Swift
func volumeDidUpdate(_ deviceType: PlanetKitAudioDeviceType, volume: Float)
Parameters
deviceType
The type of the audio device for which the volume level is being updated.
volume
The audio volume level of the audio device. The volume level ranges between 0.0 and 1.0.