Class RelatedOpenEvent

  • All Implemented Interfaces:
    Event

    public class RelatedOpenEvent
    extends java.lang.Object
    implements Event
    Payload that accompanies the onRelatedOpen() event.
    • Constructor Summary

      Constructors 
      Constructor Description
      RelatedOpenEvent​(java.lang.String method, java.lang.String url, java.util.List<PlaylistItem> items)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.List<PlaylistItem> getItems()  
      java.lang.String getMethod()  
      java.lang.String getUrl()  
      • Methods inherited from class java.lang.Object

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

      • RelatedOpenEvent

        public RelatedOpenEvent​(java.lang.String method,
                                java.lang.String url,
                                java.util.List<PlaylistItem> items)
    • Method Detail

      • getItems

        @NonNull
        public java.util.List<PlaylistItem> getItems()
        Returns:
        List of all PlaylistItems that have been loaded into the related plugin.
      • getMethod

        @NonNull
        public java.lang.String getMethod()
        Returns:
        The method used to open the plugin. (api, complete, or click).
      • getUrl

        @NonNull
        public java.lang.String getUrl()
        Returns:
        URL of the feed that was loaded into the player.