isConnectedToInternet

checks if the user's device is connected to the internet

Return

true if it is connected to the internet

Parameters

context

of the view