UserContext

open class UserContext : Parcelable

Represents the user's current context during a specific moment in time. The context includes:

  • a list of recent events, such as stationaries and transports
  • the user's active segments at the time this context was constructed
  • the user's home and work venues
  • the user's last know location, if SDK detections were running
  • the user's current semantic time

Types

Link copied to clipboard
open class Builder

Properties

Link copied to clipboard

Functions

Link copied to clipboard
Link copied to clipboard
open fun describeContents(): Int
Link copied to clipboard
open fun equals(o: Any): Boolean
Link copied to clipboard
Returns the active segments detected for the user at the time this context was constructed.
Link copied to clipboard
Returns a list of recent events, composed of stationaries, transports, and off-the-grids.
Link copied to clipboard
open fun getHome(): Venue
Returns the user's home location if known, otherwise returns null.
Link copied to clipboard
Returns the user's last known location at the time this context was constructed.
Link copied to clipboard
Returns the user's semantic time.
Link copied to clipboard
open fun getWork(): Venue
Returns the user's work location if known, otherwise returns null.
Link copied to clipboard
open fun hashCode(): Int
Link copied to clipboard
open fun toString(): String
Link copied to clipboard
open fun writeToParcel(dest: Parcel, flags: Int)