Link Search Menu Expand Document

1.1.10 version

Table of Contents

Setup

Add Maven repository reference to settings.gradle file(in root of your project):

repositories {
    maven { url "https://s01.oss.sonatype.org/content/repositories/releases" }
    ...
}

Add dependency to build.gradle file(in module):

dependencies {
    implementation 'com.expofp:fplan:1.1.10'
    ... 
}

Add Android permissions:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.expofp.myapplication">

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>

    <application
    ...

Usage

Add FplanView to layout:

<?xml version="1.0" encoding="utf-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent"
    tools:context=".MainActivity">

    <com.expofp.fplan.FplanView
        android:id="@+id/fplanView"
        android:layout_width="0dp"
        android:layout_height="0dp"
        app:layout_constraintBottom_toBottomOf="parent"
        app:layout_constraintLeft_toLeftOf="parent"
        app:layout_constraintRight_toRightOf="parent"
        app:layout_constraintTop_toTopOf="parent" />
  
</androidx.constraintlayout.widget.ConstraintLayout>

Init FplanView:

_fplanView = findViewById(R.id.fplanView);

//noOverlay - Hides the panel with information about exhibitors
_fplanView.init("https://demo.expofp.com", false, new FplanEventListener() {
            @Override
            public void onFpConfigured() {
            }

            @Override
            public void onBoothSelected(String boothName) {
            }

            @Override
            public void onRouteCreated(Route route) {
            }
        });

Functions

Select booth:

_fplanView.selectBooth("720");

Build route:

_fplanView.buildRoute("720", "751");

Set current position(Blue-dot):

_fplanView.setCurrentPosition(2875, 1734);

Clear floor plan:

_fplanView.clear();

Events

Floor plan ready event:

@Override
public void onFpConfigured() {
}

Select booth event:

@Override
public void onBoothSelected(String boothName) {
}

Route create event:

@Override
public void onRouteCreated(Route route) {
}