Companion
object Companion
Functions
Link copied to clipboard
suspend fun create(context: Context, offlineZip: File, config: SessionConfig = SessionConfig()): MapSession
Creates a session from an offline map bundle instead of fetching the map from the backend.
suspend fun create(context: Context, mapId: Int, token: String, config: SessionConfig = SessionConfig()): MapSession
Creates a session for the given map, fetching its data from the Wemap backend.
Link copied to clipboard
suspend fun createPackdataService(mapId: Int, environment: Environment = Environment.PROD): PackdataService
Creates a service for downloading a map's offline data package, which can later be passed to create with an offlineZip to open the map without a network connection.