isOffline

fun isOffline(context: Context): Boolean

Return

true if device is connected to internet and false otherwise

Parameters

context
  • Application context