Class ViewableEvent


  • public class ViewableEvent
    extends Event
    Fired when window viewability changes.
    • Constructor Summary

      Constructors 
      Constructor Description
      ViewableEvent​(JWPlayer player, boolean viewability)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean getViewability()  
      • 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

      • ViewableEvent

        public ViewableEvent​(@NonNull
                             JWPlayer player,
                             boolean viewability)
    • Method Detail

      • getViewability

        public boolean getViewability()
        Returns:
        whether or not the player is visible on screen right now