showVenue

open override fun showVenue(venueResponse: String, showVenueOptions: MPIOptions.ShowVenue?, errorCallback: (MPIError?) -> Unit?)

Shows the venue based on the venue data and options passed in MPIMapView

  • Note: An alternative method to using loadVenue where no API calls will be made; instead, data must be passed in to showVenue which takes in a data string

Return

void

Parameters

venueResponse

The full response string received from the API

showVenueOptions

The options MPIOptions.ShowVenue to load the MPIMapView with

errorCallback

Callback when MPIMapView.showVenue fails, contains an MPIError as the first parameter, defaults to null

open override fun showVenue(venueResponse: MPIVenueResponse, showVenueOptions: MPIOptions.ShowVenue?, errorCallback: (MPIError?) -> Unit?)

Shows the venue based on the venue data and options passed in MPIMapView

  • Note: An alternative method to using loadVenue where no API calls will be made; instead, data must be passed in to showVenue which takes in a deserialized MPIVenueResponse

Return

void

Parameters

venueResponse

The response from the API deserialized as MPIVenueResponse

showVenueOptions

The options MPIOptions.ShowVenue to load the MPIMapView with

errorCallback

Callback when MPIMapView.showVenue fails, contains an MPIError as the first parameter, defaults to null