Class VolumeEvent


  • public class VolumeEvent
    extends Event
    Payload that accompanies the onVolume() event.
    • Constructor Summary

      Constructors 
      Constructor Description
      VolumeEvent​(JWPlayer player, int volume)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getVolume()  
      • Methods inherited from class com.jwplayer.pub.api.events.Event

        getPlayer
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • VolumeEvent

        public VolumeEvent​(@NonNull
                           JWPlayer player,
                           int volume)
    • Method Detail

      • getVolume

        public int getVolume()
        Returns:
        The volume of the player as a float between 0 and 1 (inclusive)