NetworkMonitor

interface NetworkMonitor

Provides methods to react to changes in the application environment

Types

Link copied to clipboard

Enum class representing the different network connection types that may affect how our SDK operates.

Functions

Link copied to clipboard

Check what type of network connection is currently servicing the device

Link copied to clipboard
abstract fun isNetworkConnected(): Boolean

Instant check of network connectivity

Link copied to clipboard
abstract fun offNetworkChange(observer: NetworkObserver)

De-register an observer from onNetworkChange

Link copied to clipboard
abstract fun onNetworkChange(observer: NetworkObserver)

Register an observer to be notified when network connectivity has changed