Android Open Source - trafficcop Data Usage Alert Listener






From Project

Back to project page trafficcop.

License

The source code is released under:

Apache License

If you think the Android project trafficcop listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.

Java Source Code

package com.willowtreeapps.trafficcop;
//from w  w w  .j  a va 2  s.  c  o  m
/**
 * A listener that will be called when data usage reaches a threshold.
 */
public interface DataUsageAlertListener {
    /**
     * Called when data usage reaches a threshold.
     *
     * @param threshold the threshold reached
     * @param dataUsage the data used
     */
    void alertThreshold(Threshold threshold, DataUsage dataUsage);
}




Java Source Code List

com.willowtreeapps.trafficcop.DataUsageAlertListener.java
com.willowtreeapps.trafficcop.DataUsageStatsProvider.java
com.willowtreeapps.trafficcop.DataUsage.java
com.willowtreeapps.trafficcop.LogDataUsageAlertListener.java
com.willowtreeapps.trafficcop.SizeUnit.java
com.willowtreeapps.trafficcop.Threshold.java
com.willowtreeapps.trafficcop.TimeUnit.java
com.willowtreeapps.trafficcop.TrafficCop.java