Extensions Class

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

Syntax

public static class Extensions

Methods

Name Value Summary
GetCompassBearingTo(Position, Position) double
static
GetCurrentActivity(IMotionActivity, TimeSpan?) Task<MotionActivityEvent>
Queries for the most current event
static
IsCurrentActivity(IMotionActivity, MotionActivityType, TimeSpan?, MotionActivityConfidence) Task<bool>
static
IsCurrentAutomotive(IMotionActivity, TimeSpan?, MotionActivityConfidence) Task<bool>
Queries if most recent activity is automotive
static
IsCurrentStationary(IMotionActivity, TimeSpan?, MotionActivityConfidence) Task<bool>
Queries if most recent activity is stationary
static
IsPositionInside(GeofenceRegion, Position) bool
static
QueryByDate(IMotionActivity, DateTimeOffset) Task<IList<MotionActivityEvent>>
Queries for activities for an entire day (beginning to end)
static
RequestAccessAndStart(IGpsManager, GpsRequest) Task<AccessState>
static
ToBearing(double) double
static
ToDegrees(double) double
static
ToRad(double) double
static

Extension Methods

Name Value Summary
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