fetchTotalSecretsFromApi

suspend fun fetchTotalSecretsFromApi(oldRoom: Room? = null): Int?

Fetches the total collected secrets for the player from the API. Run this with the IO dispatcher Dispatchers.IO.

Only use this method within a coroutine to not freeze the main thread.

Return

The total secrets collected by this player, or null if no information could be retrieved.

Parameters

oldRoom

when this method is called on room change this will be the room the player was in previously.