VolumeChangeEvent
@objc(THEOplayerVolumeChangeEvent)
public class VolumeChangeEvent : CurrentTimeEvent
Fired when PlayerEventTypes.VOLUME_CHANGE
occurs for the THEOplayer
.
Remark
- The device’s volume percentage as a rational number between 0 and 1.
- Changes the value of
THEOplayer.volume
. - This is not triggered by muting the player.
-
The new value, between 0 and 1, of the device’s volume.
Declaration
Swift
@objc public private(set) var volume: Float { get }