ConnectionTool

Subscription for Internet connection status.

It can be used to avoid register several NetworkCallbacks or BroadcastReceivers for one app.

See also

Properties

Link copied to clipboard
@get:JvmName(name = "isConnected")
val isConnected: Boolean

Returns true if connection to Internet is available right now.

Functions

Link copied to clipboard

Free resources used by ConnectionTool's listeners (unregister BroadcastReceivers, unregister NetworkCallback and so on).

Link copied to clipboard

Prepare listeners of Internet availability.

Link copied to clipboard

Check has ConnectionTool been initialized (e.g. init method has been invoked).

Link copied to clipboard

Returns Flowable that emits true when connection to Internet is available and false otherwise.