Package com.naver.ads.network
Object NetworkTypeChangeDetector
-
- All Implemented Interfaces:
public class NetworkTypeChangeDetectorDetector for network type changes.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public interfaceNetworkTypeChangeDetector.NetworkTypeChangeCallbackA callback for network type changes.
-
Field Summary
Fields Modifier and Type Field Description public final static NetworkTypeChangeDetectorINSTANCE
-
Method Summary
Modifier and Type Method Description final static UnitaddCallback(NetworkTypeChangeDetector.NetworkTypeChangeCallback callback)Adds a callback for detect for network type changes. final static NetworkTypegetNetworkType()Returns the current network type. -
-
Method Detail
-
addCallback
final static Unit addCallback(NetworkTypeChangeDetector.NetworkTypeChangeCallback callback)
Adds a callback for detect for network type changes.
- Parameters:
callback- the NetworkTypeChangeCallback
-
getNetworkType
final static NetworkType getNetworkType()
Returns the current network type.
-
-
-
-