isConnected
Checks if the host device has an active network connection.
Return
true if the host has network connection, otherwise false.
Checks if the host device is connected to the using one of the allowed network type.
Return
true if the host is connecting using an allowed network type, otherwise false.
Parameters
array of allowed network types.
Checks if the host device is connected to the using one of the allowed network type.
Return
true if the host is connecting using an allowed network type, otherwise false.
Parameters
a SparseArray of NetworkType and Boolean values that indicate whether a specific network type can be used.
Checks if the specified network is one of the allowed network type.
Return
true if the host is connecting using an allowed network type, otherwise false.
Parameters
the current network information.
a SparseArray of NetworkType and Boolean values that indicate whether a specific network type can be used.