MPInitialView

data class MPInitialView(val venues: List<MPVenueStub>)

The camera information a solution serves before any of its data has loaded, from /api/solutions/initialview/{apiKey}.

The SDK applies it on its own — see MPIMapConfig. An app meets this type when it builds its map view's first camera from MapsIndoors.getStoredInitialView, or fetches it with MapsIndoors.getInitialView.

Constructors

Link copied to clipboard
constructor(venues: List<MPVenueStub>)

Functions

Link copied to clipboard
fun venue(administrativeId: String?): MPVenueStub?

The venue with this administrative id, or null when the solution serves no such venue.

Link copied to clipboard
fun venueToFrame(administrativeId: String?): MPVenueStub?

The venue a map should open on, given the venue an app named through MPIMapConfig.Builder.setInitialVenue — or null when there is no answer the SDK can stand behind.

Properties

Link copied to clipboard

The solution's default venue. The server resolves it and serves it first, so this is purely venues[0].

Link copied to clipboard

The solution's venues, in the order the server serves them.