DownloadTrafficListener
package com.intowow.sdk
public interface DownloadTrafficListener
This interface can be used to let App get more information about the status of SDK downloading file . If you set this interface to SDK by calling I2WAPI.setDownloadTrafficListener(Context context, DownloadTrafficListener listener)
, then it would be saved as a WeakReference
, so App should maintain this interface life cycle by self.
Public methods
void
onDownloadTaskEnded(long downloadTraffic) SDK callbacks the downloaded file size to App
Public methods
onDownloadTaskEnded
void onDownloadTaskEnded(long downloadTraffic)
SDK callbacks the downloaded file size to App
Parameters
downloadTraffic
long : The downloaded file size.
Last updated