Module bus.http

Interface Downloads.Listener

Enclosing class:
Downloads

public static interface Downloads.Listener
A listener interface for globally intercepting download events.
Since:
Java 17+
Author:
Kimi Liu
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    listen(CoverHttp<?> http, Downloads downloads)
    Listens for the creation of a new download task.
  • Method Details

    • listen

      void listen(CoverHttp<?> http, Downloads downloads)
      Listens for the creation of a new download task.
      Parameters:
      http - The CoverHttp task that initiated the download.
      downloads - The Downloads event handler.