context library

A library for collecting context information on:

  • location
  • activity
  • weather

Classes

ActivityDatum
Holds activity information.
ActivityProbe
Collects activity information from the underlying OS's activity recognition API. Is a ListeningProbe that generates a ActivityDatum every time an activity is detected.
ContextSamplingPackage
LocationDatum
Holds location information using the GPS format.
LocationProbe
Collects location information from the underlying OS's location API. Is a StreamProbe that generates a LocationDatum every time location is changed.
WeatherDatum
A Datum that holds weather information collected through OpenWeatherMap.
WeatherMeasure
Specify the configuration on how to collect weather data. Needs an apiKey for the OpenWeatherMap API.
WeatherProbe
Collects the weather on a regular basis using the WeatherStation API.

Properties

activityStream Stream<Datum>
read-only
locationStream Stream<LocationDatum>
read-only