Salta ai contenuti
Seleziona lingua:Italiano
Questa pagina è disponibile solo in inglese.

MDK 3.7.3

suspend fun requestBuilding(buildingId: String, fallback: Boolean = true): Building

Requests a specific building from the server.

This method retrieves the map data for a specific building identified by its ID. It can optionally fall back to a locally cached version if the server is unreachable.

Return

The requested Building object.

Parameters

buildingId

The ID of the building to request.

fallback

A boolean indicating whether to fall back to a locally cached version if the server is unreachable. Defaults to true.

Throws

MdkException.NotInitialized

If the GiPStech library is not initialized.

If another operation is in progress.

If the request is cancelled.