Class RelatedPlayEvent

  • All Implemented Interfaces:
    Event

    public class RelatedPlayEvent
    extends java.lang.Object
    implements Event
    Payload that accompanies the onRelatedPlay() event.
    • Constructor Detail

      • RelatedPlayEvent

        public RelatedPlayEvent​(PlaylistItem item,
                                boolean auto,
                                int position)
    • Method Detail

      • getAuto

        public boolean getAuto()
        Returns:
        Returns true if started via autoplay; false if manually started.
      • getItem

        @NonNull
        public PlaylistItem getItem()
        Returns:
        Metadata for the chosen item specified in the feed.
      • getPosition

        public int getPosition()
        Returns:
        Ordinal position of the related video that has been chosen.