isOnline

fun isOnline(context: Context?): Boolean

Determines whether the device is online.

Return

true when the device is online, false otherwise.

Parameters

context

The application context