ExpoFP¶
An Android library (AAR) to show and manage floor plans.
What's new in ExpoFP SDK version 5.10.0¶
- Added
planOperationalErrorFlowto receive errors that occur while the plan is operating, for example location provider failures. - Fixed a location provider failure replacing the plan loading status: provider errors are now delivered to
planOperationalErrorFlowinstead ofplanStatusFlow, so the plan keeps loading and remains usable. CollectplanOperationalErrorFlowbefore attaching the plan view; if you handled these errors viaplanStatusFlow, switch to it. - Fixed a preloaded plan reused across screens leaving an earlier screen blank:
getView()now returns a new lightweight host container on each call and shows the plan in the most recently attached host, automatically returning it to the previous screen when the current one is destroyed. CallgetView()once per screen and do not compare results by identity or cache the view beyond the screen's lifetime; existing re-attachment workarounds keep working.getView()is now annotated@MainThread. ExpoFpPlanPreloader.disposePreloadedPlan()andremoveAllPreloadedPlans()can now be called from any thread and dispose each plan exactly once; presenter cleanup always runs on the main thread.- Fixed double encoding of URL parameters with special characters when loading a plan, which broke booth selection by name.
- Removed
ExpoFpPlanParameter.ServiceWorker; the floor plan does not read theswparameter. UseExpoFpPlanParameter.Raw("sw", "1")if you still need to send it. - Changelog
Migration guides¶
Setup¶
Gradle (Kotlin DSL)
dependencies {
implementation("com.expofp:fplan:5.10.0")
}
Minimum supported Android SDK version: 24
Topics¶
- Load Plan
Basic way to show a plan from the internet. - Download Plan
Save plans in mobile file storage and use them without the internet. - Preload Plan
Preload plans in advance and reuse them without the internet during an app lifecycle. - Manage properties and settings
Reload a plan with new settings, apply, change or remove current settings and check the plan loading status. - Manage Plan
Apply commands and request information from a plan via presenter. - Listen Plan events
Listen and respond to user interactions with the plan. - Setup navigation
Setup your own location provider or use one of our pertners and help people navigate in a plan.
Articles¶
- Changelog Detailed changelog from v5.0.0 release.
- Migration guide from v4 to v5 How to easily migrate SDK from version 4 to version 5 and start using new features.
Usage Examples¶
- Mini-map Embed a floor plan preview in your content screens and expand it into a full interactive map.