useEmulator

actual fun useEmulator(host: String, port: Int)
expect fun useEmulator(host: String, port: Int)

Modifies this FirebaseDatabase instance to communicate with the Realtime Database emulator.

Note: Call this method before using the instance to do any database operations.

Parameters

host

the emulator host (for example, 10.0.2.2)

port

the emulator port (for example, 9000)

actual fun useEmulator(host: String, port: Int)
actual fun useEmulator(host: String, port: Int)
actual fun useEmulator(host: String, port: Int)