Package com.pubmatic.sdk.common.network
Class POBNetworkMonitor.POBConnectivityListener
-
- All Implemented Interfaces:
public class POBNetworkMonitor.POBConnectivityListenerConnectivity callbacks.
-
-
Constructor Summary
Constructors Constructor Description POBNetworkMonitor.POBConnectivityListener()
-
Method Summary
Modifier and Type Method Description voidonNetworkConnectionChanged(boolean isConnected)Notifies whenever there is an update in network state, also provides internet connectivity voidonNetworkRegistrationFailed()Notifies whenever network registration failed voidonNetworkPropertiesChanged()Notifies when there are changes in 1. -
-
Method Detail
-
onNetworkConnectionChanged
@MainThread() void onNetworkConnectionChanged(boolean isConnected)
Notifies whenever there is an update in network state, also provides internet connectivity
- Parameters:
isConnected- true if internet is available else return false
-
onNetworkRegistrationFailed
void onNetworkRegistrationFailed()
Notifies whenever network registration failed
-
onNetworkPropertiesChanged
void onNetworkPropertiesChanged()
Notifies when there are changes in 1. IP Addresses (e.g., DHCP lease renewal, IPv4 ↔ IPv6 switch), 2. Updates to DNS servers. 3. Changes in routing configurations, default gateway. 4. Modifications in MTU size or proxy settings.
Note: This callback may be invoked frequently, so avoid heavy operations inside it.
-
-
-
-