LocationManager
public final class SitumIPSManager extends Object
Constructor and Description |
---|
SitumIPSManager(android.content.Context context)
Deprecated.
use
LocationManager instead |
Modifier and Type | Method and Description |
---|---|
void |
adjustLocationToRoute(List<SitumFloorPoint> route)
Deprecated.
Use
NavigationManager instead |
boolean |
changeBuilding(SitumBuilding building)
Deprecated.
|
long |
getID()
Deprecated.
use
SitumSdk.getDeviceID() instead |
String |
getPositioningaddress()
Deprecated.
debug method no longer supported
|
boolean |
isAdjustingLocation()
Deprecated.
Use
NavigationManager instead |
boolean |
isRunning()
Deprecated.
use
LocationManager.isRunning() from LocationManager instead |
void |
reset()
Deprecated.
|
void |
setMagAccuracyReceiver(SitumMagAccuracyListener receiver)
Deprecated.
no longer supported
|
void |
setMotionReceiver(SitumMotionReicever receiver)
Deprecated.
no longer supported
|
void |
setPoseReceiver(SitumPoseReceiver receiver)
Deprecated.
|
void |
setSensorErrorListener(SitumSensorErrorListener sensorErrorListener)
Deprecated.
|
void |
start(SitumBuilding building)
Deprecated.
|
void |
start(SitumBuilding building,
boolean usewifi,
boolean useble,
boolean usemag)
Deprecated.
|
void |
start(SitumBuilding building,
SitumPositioningOptions options)
Deprecated.
|
void |
stop()
Deprecated.
use
LocationManager.removeUpdates(LocationListener) from LocationManager instead |
void |
stopAdjustingLocation()
Deprecated.
Use
NavigationManager instead |
boolean |
useBle(boolean value)
Deprecated.
|
boolean |
useCompass(boolean value)
Deprecated.
no longer supported. Is always true
|
boolean |
useMag(boolean value)
Deprecated.
no longer supported. Is always true
|
boolean |
useWifi(boolean value)
Deprecated.
|
boolean |
usingBLE()
Deprecated.
no longer supported. Use
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
and check LocationRequest object |
boolean |
usingCompass()
Deprecated.
no longer supported. Is always true
|
boolean |
usingMag()
Deprecated.
is always true
|
boolean |
usingWifi()
Deprecated.
no longer supported. Use
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
and check LocationRequest object |
public SitumIPSManager(android.content.Context context)
LocationManager
insteadcontext
- Application that will run the positioning servicepublic long getID()
SitumSdk.getDeviceID()
insteadUtils#INVALID_DEVICE_ID
public void start(SitumBuilding building, SitumPositioningOptions options)
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
from LocationManager
insteadSitumPositioningOptions
with custom values for the positioning service, for example when to use wifi, ble or mag.
Now we can pass to the options that we can simulate positions. With this option we can
develop without wifi or ble.
If building is null then throw an IllegalArgumentException, and the positioning is not
started, equal for optionsbuilding
- Building where we want to estimate our positionoptions
- Options for the positioning systemSitumPositioningOptions
public void start(SitumBuilding building)
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
from LocationManager
insteadSitumPositioningOptions
with all sensors enabled
If the building does not have a valid positioning service it show a message and
service does not initialize.
If building is null then throw an IllegalArgumentException
and the
positioning is not possiblebuilding
- building to start positioning@Deprecated public void start(SitumBuilding building, boolean usewifi, boolean useble, boolean usemag)
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
from LocationManager
insteadIf the building does not have a valid positioning service it show a message and service does not initialize
building
- Building where we want to estimate our positionusewifi
- Use wifi to estimate the positionuseble
- Use beacons to estimate the positionusemag
- Use magnetic field anomalies to estimate the positionpublic void stop()
LocationManager.removeUpdates(LocationListener)
from LocationManager
insteadpublic boolean changeBuilding(SitumBuilding building)
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
from LocationManager
insteadbuilding
- Supply a new building to start the positioning serverpublic String getPositioningaddress()
SitumBuilding
. The current building is the
active positioning building. This method only return valid values when the developer options are
enabled, if this setting is not enabled this method return an empty stringpublic void adjustLocationToRoute(List<SitumFloorPoint> route)
NavigationManager
insteadroute
- the routepublic void stopAdjustingLocation()
NavigationManager
insteadpublic boolean isAdjustingLocation()
NavigationManager
insteadpublic boolean isRunning()
LocationManager.isRunning()
from LocationManager
insteadSitumService
is running and requesting positionspublic void reset()
LocationManager.removeUpdates(LocationListener)
and then
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
insteadpublic void setPoseReceiver(SitumPoseReceiver receiver)
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
from LocationManager
insteadSitumPoseReceiver
callback to receive the pose data.receiver
- Callback that is asynchronously called when new pose data is receivedpublic void setMotionReceiver(SitumMotionReicever receiver)
SitumMotionReicever
callback to receive the motion datareceiver
- Callback that is asynchronously called when new motion information
is receivedpublic void setMagAccuracyReceiver(SitumMagAccuracyListener receiver)
SitumMagAccuracyListener
callback to receive the magnetic field
accuracy datareceiver
- Callback that is asynchronously called when new motion data is receivedpublic void setSensorErrorListener(SitumSensorErrorListener sensorErrorListener)
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
from LocationManager
insteadsensorErrorListener
- SitumSensorErrorListener
public boolean useWifi(boolean value)
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
from LocationManager
insteadvalue
- Use wifi information for positioningpublic boolean useBle(boolean value)
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
from LocationManager
insteadvalue
- Use ble information for positioningpublic boolean useMag(boolean value)
value
- Use magnetic field information for positioningpublic boolean useCompass(boolean value)
value
- Use compass information for positioningpublic boolean usingWifi()
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
and check LocationRequest
objectpublic boolean usingBLE()
LocationManager.requestLocationUpdates(LocationRequest, LocationListener)
and check LocationRequest
objectpublic boolean usingCompass()
public boolean usingMag()