PositionManager

open class PositionManager : NativeMethodsReceiver

Types

PositionChangeListener
Link copied to clipboard
interface PositionChangeListener : NativeMethodsReceiver.NativeListener
Represents an interface for position update listeners.

Functions

addPositionChangeListener
Link copied to clipboard
open fun addPositionChangeListener(listener: PositionManager.PositionChangeListener)
Adds a PositionChangeListener to the PositionManager .
open fun addPositionChangeListener(listener: PositionManager.PositionChangeListener, @Nullable() executor: Executor)
Adds a PositionChangeListener to the PositionManager .
destroy
Link copied to clipboard
open fun destroy()
getLastKnownPosition
Link copied to clipboard
open fun getLastKnownPosition(): GeoPosition
Returns the last know position.
removePositionChangeListener
Link copied to clipboard
open fun removePositionChangeListener(listener: PositionManager.PositionChangeListener)
Removes a PositionChangeListener to the PositionManager .
setCustomPositionUpdater
Link copied to clipboard
open fun setCustomPositionUpdater(@Nullable() customPositionUpdater: CustomPositionUpdater)
Sets the custom position data source which can be used for custom position updatesGPS location updates will be automatically disabled.
startPositionUpdating
Link copied to clipboard
open fun startPositionUpdating()
Starts location updates from device GPS
stopPositionUpdating
Link copied to clipboard
open fun stopPositionUpdating()
Stops location updates from device GPS