getType

open fun getType(): Int

Reports the type of network to which the info in this NetworkInfo pertains.

Since

Added 1.4.0.

Return

one of TYPE_NOT, TYPE_MOBILE, TYPE_WIFI, TYPE_ANY,or other types defined by NetworkManager.