registerObserver

open fun registerObserver(@NonNull observer: OfflineSwitchObserver)

WARNING: This API is not intended for public usage. It can be deleted or changed without any notice. Register a new observer. This observer is intended to be used internal only. The observer's statusChanged method will be called immediately with the current status of the offline switch and whenever the OfflineSwitch is forced offline or back online.

Parameters

observer

The callback to receive the update.