onChanged

abstract fun onChanged(listener: Listener<WifiChanged>): Subscription(source)

Subscribes to state changes. The listener runs on the plugin's worker thread. Cancelling the returned subscription stops delivery.