MotionActivityExtensions Class

Namespace
Shiny.Locations
Base Types
  • object
graph BT Type-->Base0["object"] Type["MotionActivityExtensions"] class Type type-node

Syntax

public static class MotionActivityExtensions

Methods

Name Value Summary
GetCurrentActivity(IMotionActivityManager, TimeSpan?) Task<MotionActivityEvent>
Queries for the most current event
static
IsCurrentActivity(IMotionActivityManager, MotionActivityType, TimeSpan?, MotionActivityConfidence) Task<bool>
static
IsCurrentAutomotive(IMotionActivityManager, TimeSpan?, MotionActivityConfidence) Task<bool>
Queries if most recent activity is automotive
static
IsCurrentStationary(IMotionActivityManager, TimeSpan?, MotionActivityConfidence) Task<bool>
Queries if most recent activity is stationary
static
QueryByDate(IMotionActivityManager, DateTimeOffset) Task<IList<MotionActivityEvent>>
Queries for activities for an entire day (beginning to end)
static

Extension Methods

Name Value Summary
ReflectCopyTo(object) void
ReflectGet(string) object
Gets an objects property dynamically through reflection - will throw an exception if proper has no getter or property does not exists
ReflectSet(string, object) void
Sets an objects property dynamically through reflection - will throw an exception if proper has no setter, wrong type, or property does not exists
GitHub