Show Menu
Cheatography

Indoor SDK Cheat Sheet (DRAFT) by

Indoor SDK cheatsheet

This is a draft cheat sheet. It is a work in progress and is not finished yet.

Indoor­Pos­iti­oni­ngS­ervice

init:
IndoorPositioningService(Context
    LocationProvider,
    GeofenceProvider,
    MapProvider,null);

methods:
start()
stop()
isRunning()
getMapList()
getMapWithId(locationId)
findRoute(IndoorLocation, IndoorLocation, boolean)

delegate:
delegate = IndoorPositioningServiceDelegate

API Config & Providers

cfgprovider = new VFApiConfig(endpoint,apikey,clientId);

new VFApiBeaconLocationProvider(cfgprovider)
new VFApiGeofenceProvider(cfgprovider)
new VFApiMapProvider(cfgprovider)

Indoor­Pos­iti­oni­ngS­erv­ice­Del­egate

didLostConnectivity()
didGainConnectivity()
didLostBluetooth()
didGainBluetooth()
didLostLocation()
didEnterGeofence(Geofence geofence)
didReceiveLocation(IndoorLocation location)
didReceiveHeading(double azimuth)
failedWithProviderVerificationError()
 

MapView

Methods:
loadMap2D()
addOverlayWithName()
setBgColor()
loadMap3D()
unloadMaps()
toggleTopViewPerspective()
gotoPosition()
setZoomLevel()
pause()
resume()
hideUserPosition()
showUserPosition()
setUserPosition()
getCenterPos()
setRoute()
setSourceIcon()
unsetSource()
setDestinationIcon()
unsetDestination()
dumpState()
loadState()

Properties:
MAPMODE map_mode Can be M2D or M3D
CAMMODE cam_mode Can be TOP, PERSPECTIVE or POV
UIButton *zoomin Zoom in button
UIButton * zoomout Zoom out button
UIButton *compass Compass button
UIButton *mylocation MyLocation button
UIButton *switch3d Switch 3D/2D button
UIButton* pers Perspective toggle button
double compassAzimuth

delegate:
delegate = MapViewDelegate

MapVie­wDe­legate

onMap2DLoaded()
onMap2DUnloaded()
onMap3DLoaded()
onMap3DUnloaded()
onMapSingleTap(double x, double y)
onMapLongPress(double x, double y)
onMapOverlayTap(String overlay_id)