Create a class that notifies observe classes about the network connection and disconnection. /** * Internet Util class to observer connection. */ class InternetConnectionUtil constructor(context: Context, listener: (Int) -> Unit) { init { ...

Markdown supported · ⌘↵ to post
No responses yet.