getIpAddress

fun getIpAddress(isRunningOnEmulator: Boolean): String

Returns the IP address based on whether the app is running on an emulator or not.

Return

The IP address as a string.

Parameters

isRunningOnEmulator

Indicates whether the app is running on an emulator.