addObserver

@RequiresPermission(value = "android.permission.ACCESS_NETWORK_STATE")
open override fun addObserver(observer: NetworkConnectivity.Observer)

Adds an observer to receive events.