All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.path.android.jobqueue.network.NetworkEventProvider Maven / Gradle / Ivy

Go to download

a Job Queue specifically written for Android to easily schedule jobs (tasks) that run in the background, improving UX and application stability.

There is a newer version: 1.1.2
Show newest version
package com.path.android.jobqueue.network;

/**
 * An interface that NetworkUtil can implement if it supports a callback method when network state is changed
 * This is not mandatory but highly suggested so that {@link com.path.android.jobqueue.JobManager} can avoid
 * busy loops when there is a job waiting for network and there is no network available
 */
public interface NetworkEventProvider {
    public void setListener(Listener listener);
    public static interface Listener {
        /**
         * @param isConnected can be as simple as having an internet connect or can also be customized. (e.g. if your servers are down)
         */
        public void onNetworkChange(boolean isConnected);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy