Input

interface Input

Defines the current device Location model that is available to be read from by the processor.

Types

TrackingRequirements
Link copied to clipboard
class TrackingRequirements(updateInterval: Long, updateIntervalTimeUnit: TimeUnit)
Defines a set of requirements that LocationProcessor expects to be satisfied by Location tracking implementation.

Functions

subscribeTo
Link copied to clipboard
abstract fun subscribeTo(trackingRequirements: LocationProcessor.Input.TrackingRequirements, onLocationAvailable: Consumer<Location>): Closeable
Subscribes to the provided onLocationAvailable to be notified when a new Location is available for this input.