create
Creates a session for the given map, fetching its data from the Wemap backend.
Return
A ready-to-use session.
Parameters
An Android context; the application context is retained for sensor access.
The identifier of the map to load, as found on the Wemap dashboard.
The access token authorizing the request.
Tunable session-wide settings. Defaults to SessionConfig().
Throws
if the map data cannot be fetched or decoded.
Creates a session from an offline map bundle instead of fetching the map from the backend.
Return
A ready-to-use session backed by the offline bundle.
Parameters
An Android context; the application context is retained for sensor access.
A zip archive containing the map's offline data, as produced by the packdata service.
Tunable session-wide settings. Defaults to SessionConfig().
Throws
if the archive cannot be read or its map data decoded.