NetworkTypeObserver.Listener


public interface NetworkTypeObserver.Listener


A listener for network type changes.

Summary

Public methods

abstract void

Called when the network type changed or when the listener is first registered.

Public methods

onNetworkTypeChanged

abstract void onNetworkTypeChanged(@C.NetworkType int networkType)

Called when the network type changed or when the listener is first registered.

This method is always called on the main thread.