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

org.solovyev.android.network.NetworkStateService Maven / Gradle / Ivy

There is a newer version: 1.1.18
Show newest version
package org.solovyev.android.network;

import android.content.Context;

import javax.annotation.Nonnull;

public interface NetworkStateService {

	static final String TAG = "NetworkStateService";

	/**
	 * This method starts listening for network connectivity state changes.
	 *
	 * @param context context
	 */
	void startListening(@Nonnull Context context);

	/**
	 * This method stops this class from listening for network changes.
	 */
	void stopListening();

	boolean addListener(@Nonnull NetworkStateListener listener);

	boolean removeListener(@Nonnull NetworkStateListener listener);

	@Nonnull
	NetworkData getNetworkData();
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy