IMotionActivityManager Interface

Namespace
Shiny.Locations
Implementing Types
graph BT Type["IMotionActivityManager"] class Type type-node Implementing0["TestMotionActivityManager"]-.->Type click Implementing0 "/api/Shiny.Testing.Locations/TestMotionActivityManager"

Syntax

public interface IMotionActivityManager

Methods

Name Value Summary
Query(DateTimeOffset, DateTimeOffset?) Task<IList<MotionActivityEvent>>
RequestPermission() Task<AccessState>
WhenActivityChanged() IObservable<MotionActivityEvent>
This will only work in the foreground on iOS

Extension Methods

Name Value Summary
GetCurrentActivity(TimeSpan?) Task<MotionActivityEvent>
Queries for the most current event
GetPropertyInfo<IMotionActivityManager, TRet>(Expression<Func<IMotionActivityManager, TRet>>) PropertyInfo
Reflects out property information based on the expression value
IsCurrentActivity(MotionActivityType, TimeSpan?, MotionActivityConfidence) Task<bool>
IsCurrentAutomotive(TimeSpan?, MotionActivityConfidence) Task<bool>
Queries if most recent activity is automotive
IsCurrentStationary(TimeSpan?, MotionActivityConfidence) Task<bool>
Queries if most recent activity is stationary
QueryByDate(DateTimeOffset) Task<IList<MotionActivityEvent>>
Queries for activities for an entire day (beginning to end)
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
ReflectGet<IMotionActivityManager, TReturn>(Expression<Func<IMotionActivityManager, TReturn>>) TReturn
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