hasNetwork

open fun hasNetwork(): Boolean

Returns the status of network connectivity.

Return

True - if network connectivity is available, False - otherwise.