IExpoFpPlanPresenter

Presenter for managing a specific plan.

Properties

Link copied to clipboard

Parameters that were applied to the plan.

Link copied to clipboard
abstract val id: UUID

Presenter unique id.

Link copied to clipboard

Enables sending DEBUG messages via IExpoFpPlanMessageListener.

Link copied to clipboard

Location provider that is currently in use.

Link copied to clipboard
abstract val planLink: ExpoFpLinkType

Link from which the plan was loaded.

Link copied to clipboard
abstract val planStatusFlow: Flow<ExpoFpPlanStatus>

A flow that notifies about plan loading statuses and navigation errors.

Functions

Link copied to clipboard
abstract fun activateFloor(floor: ExpoFpFloor)

Switch to the specified floor.

Link copied to clipboard
abstract fun applyAdditionalParams(params: List<ExpoFpPlanParameter>, isSaved: Boolean = false)

New parameters will be applied immediately. If isSaved is true, they will also be stored in additionalParams.

Link copied to clipboard
abstract suspend fun boothsList(): ExpoFpResult<List<ExpoFpBooth>>

Request plan booths (suspend version).

abstract fun boothsList(completion: (ExpoFpResult<List<ExpoFpBooth>>) -> Unit)

Request plan booths (callback version).

Link copied to clipboard

Request plan categories (suspend version).

Request plan categories (callback version).

Link copied to clipboard
abstract fun changeLanguage(language: ExpoFpLanguage)

Change Plan language.

Link copied to clipboard

Reset current position.

Link copied to clipboard
abstract fun deselectRoute()

Delete the built route.

Link copied to clipboard
abstract suspend fun evaluateCustomScript(script: String): ExpoFpResult<Any?>

Execute custom script for DEBUG purposes (suspend version).

abstract fun evaluateCustomScript(script: String, completion: (ExpoFpResult<Any?>) -> Unit)

Execute custom script for DEBUG purposes (callback version).

Link copied to clipboard

Request plan exhibitors (suspend version).

Request plan exhibitors (callback version).

Link copied to clipboard
abstract fun findLocation()

Location search if location is enabled.

Link copied to clipboard
abstract fun fitBounds(bounds: ExpoFpBounds? = null, options: ExpoFpZoomOptions? = null)

Display the plan within the specified bounds with optional padding.

Link copied to clipboard
abstract suspend fun getBounds(selectors: ExpoFpPOISelectors): ExpoFpResult<ExpoFpBounds?>

Get bounds for specified booths/exhibitors (suspend version).

abstract fun getBounds(selectors: ExpoFpPOISelectors, completion: (ExpoFpResult<ExpoFpBounds?>) -> Unit)

Get bounds for specified booths/exhibitors (callback version).

Link copied to clipboard

Request elements visibility info (suspend version).

Request elements visibility info (callback version).

Link copied to clipboard
abstract suspend fun getFloors(): ExpoFpResult<List<ExpoFpFloor>>

Request information about floors in a plan (suspend version).

abstract fun getFloors(completion: (ExpoFpResult<List<ExpoFpFloor>>) -> Unit)

Request information about floors in a plan (callback version).

Link copied to clipboard

Optimize the constructed route (suspend version).

Optimize the constructed route (callback version).

Link copied to clipboard
abstract fun getView(): View

Returns a View for displaying the plan.

Link copied to clipboard
abstract fun highlightBooths(externalIds: List<String> = emptyList())

Highlight the specified Booths by external IDs.

Link copied to clipboard
abstract fun highlightEntities(externalIds: List<String> = emptyList())

Highlight the specified Entities (Booths and Exhibitors) by external IDs.

Link copied to clipboard
abstract fun highlightExhibitors(externalIds: List<String> = emptyList())

Highlight the specified Exhibitors by external IDs.

Link copied to clipboard

Request whether built-in GPS tracking is enabled (suspend version).

Request whether built-in GPS tracking is enabled (callback version).

Link copied to clipboard
abstract fun reloadPlan(planLink: ExpoFpLinkType? = null, additionalParams: List<ExpoFpPlanParameter>? = null, locationProvider: IExpoFpLocationProvider? = null, messageListener: IExpoFpPlanMessageListener? = null, isDebugModeEnabled: Boolean? = null)

Clear cache and reload the plan.

Link copied to clipboard
abstract fun removeAdditionalParams(keys: List<String>)

Parameters will be removed from additionalParams.

Link copied to clipboard
abstract fun removeLocationProvider()

Removes current location provider from the plan and enables GPS.

Link copied to clipboard
abstract fun removeMessageHandler(callbackName: String)

Removes custom message handler for specific callback on a plan.

Link copied to clipboard
abstract fun removeMessageListener()

Removes current message listener from the plan.

Link copied to clipboard
abstract fun reset()

Reset the plan to its original state.

Link copied to clipboard
abstract suspend fun search(text: String): ExpoFpResult<List<ExpoFpSearchModel>>

Text search (suspend version).

abstract fun search(text: String, completion: (ExpoFpResult<List<ExpoFpSearchModel>>) -> Unit)

Text search (callback version).

Link copied to clipboard
abstract fun selectBooth(nameOrExternalId: String = "")

Select the specified Booth by name or external ID.

Link copied to clipboard
abstract fun selectCategory(name: String? = null)

Select the specified Category by name.

Link copied to clipboard
abstract fun selectCurrentPosition(position: ExpoFpPosition, focus: Boolean = true)

Select the specified position and optionally focus on it.

Link copied to clipboard
abstract fun selectExhibitor(nameOrExternalId: String = "")

Select the specified Exhibitor by name or external ID.

Link copied to clipboard
abstract fun selectRoute(waypoints: List<ExpoFpRouteWaypoint>)

Build the specified route.

Build the specified route with start and/or destination point.

Link copied to clipboard
abstract fun setBookmarks(bookmarks: List<ExpoFpBookmark>)

Add or remove bookmarks.

Link copied to clipboard
abstract fun setBuiltInGpsTrackingEnabled(isEnabled: Boolean)

Enable or disable built-in GPS tracking in a plan.

Link copied to clipboard

Enable or disable elements visibility in the plan.

Link copied to clipboard

New location provider will be applied immediately.

Link copied to clipboard
abstract fun setMessageHandler(messageHandler: IExpoFpCustomMessageHandler, callbackName: String)

Sets custom message handler for specific callback on a plan.

Link copied to clipboard

Sets a new message listener for the plan.

Link copied to clipboard
abstract fun switchView()

Switch between 2D and 3D.

Link copied to clipboard
abstract fun zoomIn()

Zoom in the plan.

Link copied to clipboard
abstract fun zoomOut()

Zoom out the plan.

Link copied to clipboard
abstract fun zoomTo(selectors: ExpoFpPOISelectors, options: ExpoFpZoomOptions? = null)

Zoom to specified POIs.