Skip to content

Interface: ExpofpViewMethods

Defined in: types.ts:155

Main ExpoFP ReactNative SDK interface. Provides methods to interact with the ExpoFP view.

Properties

activateFloor()

activateFloor: (floor) => void

Defined in: types.ts:181

Activates a specific floor.

Parameters

floor

ExpoFpFloor

The floor to activate.

Returns

void


boothsList()

boothsList: () => Promise<ExpoFpBooth[]>

Defined in: types.ts:257

Gets the list of booths.

Returns

Promise<ExpoFpBooth[]>

A promise that resolves with an array of booths.


categoriesList()

categoriesList: () => Promise<ExpoFpCategory[]>

Defined in: types.ts:262

Gets the list of categories.

Returns

Promise<ExpoFpCategory[]>

A promise that resolves with an array of categories.


exhibitorsList()

exhibitorsList: () => Promise<ExpoFpExhibitor[]>

Defined in: types.ts:267

Gets the list of exhibitors.

Returns

Promise<ExpoFpExhibitor[]>

A promise that resolves with an array of exhibitors.


findLocation()

findLocation: () => void

Defined in: types.ts:185

Finds the current location on the map.

Returns

void


fitBounds()

fitBounds: () => void

Defined in: types.ts:189

Fits the map bounds to show the entire plan.

Returns

void


getElementsVisibility()

getElementsVisibility: () => Promise<ExpoFpElementsVisibility>

Defined in: types.ts:272

Gets the current visibility of map elements.

Returns

Promise<ExpoFpElementsVisibility>

A promise that resolves with the current visibility settings.


getFloors()

getFloors: () => Promise<ExpoFpFloor[]>

Defined in: types.ts:277

Gets the list of floors.

Returns

Promise<ExpoFpFloor[]>

A promise that resolves with an array of floors.


getOptimizedRoutes()

getOptimizedRoutes: (waypoints) => Promise<ExpoFpRouteInfo[]>

Defined in: types.ts:283

Gets optimized routes through the given waypoints.

Parameters

waypoints

(string | ExpoFpPosition)[]

The waypoints for the route.

Returns

Promise<ExpoFpRouteInfo[]>

A promise that resolves with an array of route info.


getSettings()

getSettings: () => Promise<Partial<ExpofpViewSettings>>

Defined in: types.ts:160

Gets the current settings of the view.

Returns

Promise<Partial<ExpofpViewSettings>>

A promise that resolves with the current settings.


highlightBooths()

highlightBooths: (externalIds?) => void

Defined in: types.ts:194

Highlights specific booths.

Parameters

externalIds?

string[]

The external IDs of the booths to highlight.

Returns

void


highlightExhibitors()

highlightExhibitors: (externalIds?) => void

Defined in: types.ts:199

Highlights specific exhibitors.

Parameters

externalIds?

string[]

The external IDs of the exhibitors to highlight.

Returns

void


reloadPlan()

reloadPlan: (settings?) => void

Defined in: types.ts:176

Reloads the plan with optional new settings.

Parameters

settings?

Optional new settings to apply.

Partial<ExpofpViewSettings> | null

Returns

void


removeSavedParams()

removeSavedParams: (keys) => void

Defined in: types.ts:171

Removes saved parameters.

Parameters

keys

string[]

The keys of the parameters to remove.

Returns

void


searchText()

searchText: (text) => Promise<ExpoFpSearch[]>

Defined in: types.ts:291

Searches for text within the map data.

Parameters

text

string

The text to search for.

Returns

Promise<ExpoFpSearch[]>

A promise that resolves with an array of search results.


selectBooth()

selectBooth: (nameOrExternalId?) => void

Defined in: types.ts:204

Selects a booth by name or external ID.

Parameters

nameOrExternalId?

string

The name or external ID of the booth to select.

Returns

void


selectCategory()

selectCategory: (name?) => void

Defined in: types.ts:209

Selects a category by name.

Parameters

name?

The name of the category to select.

string | null

Returns

void


selectCurrentPosition()

selectCurrentPosition: (position?, focus?) => void

Defined in: types.ts:215

Selects the current position.

Parameters

position?

The position to select.

ExpoFpPosition | null

focus?

boolean

Whether to focus on the position.

Returns

void


selectExhibitor()

selectExhibitor: (nameOrExternalId?) => void

Defined in: types.ts:223

Selects an exhibitor by name or external ID.

Parameters

nameOrExternalId?

string

The name or external ID of the exhibitor to select.

Returns

void


selectRoute()

selectRoute: (waypoints?) => void

Defined in: types.ts:228

Selects a route through the given waypoints.

Parameters

waypoints?

(string | ExpoFpPosition)[]

The waypoints for the route.

Returns

void


setBookmarks()

setBookmarks: (bookmarks) => void

Defined in: types.ts:233

Sets the bookmarks on the map.

Parameters

bookmarks

ExpoFpBookmark[]

The bookmarks to set.

Returns

void


setElementsVisibility()

setElementsVisibility: (elementsVisibility) => void

Defined in: types.ts:238

Sets the visibility of map elements.

Parameters

elementsVisibility

Partial<ExpoFpElementsVisibility>

The visibility settings to apply.

Returns

void


setParams()

setParams: (params, isSaved?) => void

Defined in: types.ts:166

Sets parameters for the view.

Parameters

params

Record<string, string | null>

The parameters to set.

isSaved?

boolean

Whether the parameters should be saved.

Returns

void


switchView()

switchView: () => void

Defined in: types.ts:244

Switches the view mode (e.g., 2D/3D).

Returns

void


zoomIn()

zoomIn: () => void

Defined in: types.ts:248

Zooms in on the map.

Returns

void


zoomOut()

zoomOut: () => void

Defined in: types.ts:252

Zooms out on the map.

Returns

void