-
Notifications
You must be signed in to change notification settings - Fork 18
Class NavigineSdk
Class NavigineSdk contains a list of static functions for initializing library, and list of functions for getting access to the managers, each of which will provide different opportunities for working with SDK.
public static void setUserHash(String userHash)
This function initialises the user hash value of NavigineSdk.
-
userHash
— user security key.
public static void setServer(String server)
This function initialises the server value of NavigineSdk.
-
serverUrl
— server URL (in the formathttp[s]://host[:port]
, e.g."https://api.navigine.com"
).
public static NavigineSdk getInstance()
This function initializes Navigation library and returns NavigineSdk instance.
NavigineSdk instance, which could be used for getting managers.
public static LocationListManager getLocationListManager()
This function returns the LocationListManager class instance.
LocationListManager instance, which could be used for working with the list of LocationInfos.
public static LocationManager getLocationManager()
This function returns the LocationManager class instance.
LocationManager instance, which could be used for working with the Location.
public static NavigationManager getNavigationManager(LocationManager locationManager)
This function returns the NavigationManager class instance.
-
locationManager
— LocationManager class instance.
NavigationManager instance, which could be used for working with the Position.
public static RouteManager getRouteManager(LocationManager locationManager, NavigationManager navigationManager)
This function returns the RouteManager class instance.
-
locationManager
— LocationManager class instance. -
navigationManager
— NavigationManager class instance.
RouteManager instance, which could be used for working making routes, setting target points. (See RoutePath class).
public static ZoneManager getZoneManager(LocationManager locationManager, NavigationManager navigationManager)
This function returns the ZoneManager class instance.
-
locationManager
— LocationManager class instance. -
navigationManager
— NavigationManager class instance.
ZoneManager instance, which could be used for working with zones and detecting enter and leave events. (See Zone class).
public static NotificationManager getNotificationManager(LocationManager locationManager)
This function returns the NotificationManager class instance.
-
locationManager
— LocationManager class instance.
NotificationManager instance, which could be used for working with notifications when detecting beacons. (See Notification class).
public static MeasurementManager getMeasurementManager()
This function returns the MeasurementManager class instance.
MeasurementManager instance, which could be used for working with signals and sensors. (See SignalMeasurement and SensorMeasurement classes).
public static LocationEditManager getLocationEditManager(LocationManager locationManager)
This function returns the LocationEditManager class instance.
-
locationManager
— LocationManager class instance.
InspectManager instance, which could be used for modifying location and uploading changes to the server. (See Location class).
public static ResourceManager getResourceManager(LocationManager locationManager)
This function returns the ResourceManager class instance.
-
locationManager
— LocationManager class instance.
ResourceManager instance, which could be used for working with images, uploading user files and events, working with log files.
Do not forget to set your User Hash and server before getting the instance of NavigineSdk, so it would be correctly initialised!
...
Navigine.initialize(context);
NavigineSdk.setUserHash( /* Your User Hash*/ );
NavigineSdk.setServer( /* Server Url */ );
NavigineSdk mNavigineSdk = NavigineSdk.getInstance();
LocationListManager mLocationListManager = mNavigineSdk.getLocationListManager();
LocationManager mLocationManager = mNavigineSdk.getLocationManager();
NavigationManager mNavigationManager = mNavigineSdk.getNavigationManager(mLocationManager);
RouteManager mRouteManager = mNavigineSdk.getRouteManager(mLocationManager, mNavigationManager);
MeasurementManager mMeasurementManager = mNavigineSdk.getMeasurementManager();
ResourceManager mResourceManager = mNavigineSdk.getResourceManager(mLocationManager);
...
Tutorials
Classes
- NavigineSdk
- LocationListManager
- LocationManager
- NavigationManager
- RouteManager
- ZoneManager
- NotificationManager
- MeasurementManager
- LocationEditManager
- ResourceManager
- Location
- Sublocation
- Category
- Venue
- Zone
- Beacon
- Eddystone
- Wifi
- LocationView
- LocationViewController
- CircleMapObject
- PolylineMapObject
- IconMapObject
- TouchInput
- ScaleResponder
- PanResponder
- LongPressResponder
- DoubleTapResponder
- TapResponder
- LocationListListener
- LocationListener
- PositionListener
- RouteListener
- ZoneListener
- NotificationListener
- LocationEditListener
- MeasurementListener
- ResourceListener
- ResourceUploadListener
- Notification
- Position
- SignalMeasurement
- SensorMeasurement
- Image
- RoutePath
- RouteEvent
- LocationPoint
- LocationInfo
- BitmapRegionDecoder