showVenue

abstract fun showVenue(venueResponse: String, showVenueOptions: MPIOptions.ShowVenue? = null, errorCallback: (MPIError?) -> Unit? = null)

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

Unit

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 a MPIError as the first parameter, defaults to null

abstract fun showVenue(venueResponse: MPIVenueResponse, showVenueOptions: MPIOptions.ShowVenue? = null, errorCallback: (MPIError?) -> Unit? = null)

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

Unit

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 a MPIError as the first parameter, defaults to null