Interface BandwidthEstimator

    • Field Detail

      • ESTIMATE_NOT_AVAILABLE

        static final long ESTIMATE_NOT_AVAILABLE
        Deprecated.
        See Also:
        Constant Field Values
    • Method Detail

      • onTransferInitializing

        void onTransferInitializing​(DataSource source)
        Deprecated.
        Called when a transfer is being initialized.
        Parameters:
        source - The DataSource performing the transfer.
      • onTransferStart

        void onTransferStart​(DataSource source)
        Deprecated.
        Called when a transfer starts.
        Parameters:
        source - The DataSource performing the transfer.
      • onBytesTransferred

        void onBytesTransferred​(DataSource source,
                                int bytesTransferred)
        Deprecated.
        Called incrementally during a transfer.
        Parameters:
        source - The DataSource performing the transfer.
        bytesTransferred - The number of bytes transferred since the previous call to this method
      • onTransferEnd

        void onTransferEnd​(DataSource source)
        Deprecated.
        Called when a transfer ends.
        Parameters:
        source - The DataSource performing the transfer.
      • getBandwidthEstimate

        long getBandwidthEstimate()
        Deprecated.
        Returns the bandwidth estimate in bits per second, or ESTIMATE_NOT_AVAILABLE if there is no estimate available yet.
      • onNetworkTypeChange

        void onNetworkTypeChange​(long newBandwidthEstimate)
        Deprecated.
        Notifies this estimator that a network change has been detected.
        Parameters:
        newBandwidthEstimate - The new initial bandwidth estimate based on network type.