Interface TransferListener

    • Method Detail

      • onTransferInitializing

        void onTransferInitializing​(DataSource source,
                                    DataSpec dataSpec,
                                    boolean isNetwork)
        Deprecated.
        Called when a transfer is being initialized.
        Parameters:
        source - The source performing the transfer.
        dataSpec - Describes the data for which the transfer is initialized.
        isNetwork - Whether the data is transferred through a network.
      • onTransferStart

        void onTransferStart​(DataSource source,
                             DataSpec dataSpec,
                             boolean isNetwork)
        Deprecated.
        Called when a transfer starts.
        Parameters:
        source - The source performing the transfer.
        dataSpec - Describes the data being transferred.
        isNetwork - Whether the data is transferred through a network.
      • onBytesTransferred

        void onBytesTransferred​(DataSource source,
                                DataSpec dataSpec,
                                boolean isNetwork,
                                int bytesTransferred)
        Deprecated.
        Called incrementally during a transfer.
        Parameters:
        source - The source performing the transfer.
        dataSpec - Describes the data being transferred.
        isNetwork - Whether the data is transferred through a network.
        bytesTransferred - The number of bytes transferred since the previous call to this method.
      • onTransferEnd

        void onTransferEnd​(DataSource source,
                           DataSpec dataSpec,
                           boolean isNetwork)
        Deprecated.
        Called when a transfer ends.
        Parameters:
        source - The source performing the transfer.
        dataSpec - Describes the data being transferred.
        isNetwork - Whether the data is transferred through a network.