getWifiCredentials

@CheckReturnValue
abstract override fun getWifiCredentials(): Maybe<WifiCredentials>

Returns the wifi credentials of the current wifi connection, if currently connected via wifi. Will otherwise return Maybe.empty.

Return

a Maybe that will contain the WifiCredentials of the current wifi connection if connected, or Maybe.empty if currently not connected via wifi.