public final class

FakeLocationSource

extends Object
implements LocationSource
java.lang.Object
   ↳ com.steerpath.sdk.location.FakeLocationSource

Class Overview

LocationSource that publishes "fake location updates" once per second. Created by opiirone on 15/05/2018.

Summary

[Expand]
Inherited Fields
From interface com.steerpath.sdk.location.LocationSource
Public Constructors
FakeLocationSource()
Public Methods
void activate(LocationSource.OnLocationChangedListener listener)
Starts publishing location updates.
void deactivate()
Stops publishing location updates.
void removeUpdates(LocationListener listener)
Unregister LocationListener.
void requestLocationUpdates(LocationListener listener)
Register LocationListener for location updates.
void setLocation(Location location)
Update current fake location.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.steerpath.sdk.location.LocationSource

Public Constructors

public FakeLocationSource ()

Public Methods

public void activate (LocationSource.OnLocationChangedListener listener)

Starts publishing location updates. Usually app has no need to use this; method is called internally by the SDK.

public void deactivate ()

Stops publishing location updates. Usually app has no need to use this; method is called internally by the SDK.

public void removeUpdates (LocationListener listener)

Unregister LocationListener. Usually app has no need to use this; method is called internally by the SDK.

public void requestLocationUpdates (LocationListener listener)

Register LocationListener for location updates. Usually app has no need to use this; method is called internally by the SDK.

public void setLocation (Location location)

Update current fake location. This location will be published once per second through OnLocationChangedListener and LocationListeners.