yieldprobe / com.yieldlab.yieldprobe.helper / ConnectivityHelper

ConnectivityHelper

class ConnectivityHelper

Helper class to check connection status amd read out connection type. This code was taken from old sevenonemedia SDK.

Constructors

<init>

Helper class to check connection status amd read out connection type. This code was taken from old sevenonemedia SDK.

ConnectivityHelper()

Properties

CELLULAR_NETWORK_2G

val CELLULAR_NETWORK_2G: String

CELLULAR_NETWORK_3G

val CELLULAR_NETWORK_3G: String

CELLULAR_NETWORK_4G

val CELLULAR_NETWORK_4G: String

CELLULAR_NETWORK_UNKNOWN_GENERATION

val CELLULAR_NETWORK_UNKNOWN_GENERATION: String

ETHERNET

val ETHERNET: String

UNKNOWN

Connection types defined in API spec.

val UNKNOWN: String

WIFI

val WIFI: String

Functions

getConnectionType

Check type of connection.

fun getConnectionType(context: Context): String

isConnected

Check is device is connected.

fun isConnected(context: Context): Boolean