headlesswifimanager / com.wideverse.headlesswifimanager.helper / WifiHelper / getDrawableFromRSSI

getDrawableFromRSSI

@DrawableRes fun getDrawableFromRSSI(level: Int, protected: Boolean): Int

Get a good looking drawable resource to quickly identify network's level signal and its security policy.

Parameters

level - : RSSI of the scanned network

protected - : false if the network does not require a password

Return
a drawable to represent the network to the user