Class AndroidActivityProbe
Provides inferred activity information via the Google Awareness API as ActivityDatum readings. As it is not
possible to do continuous, real time activity recognition due to battery and network limitations, there are several caveats
to the data produced by this probe:
- The user must typically be engaged in the activity for 30 seconds or more for the activity to be detected.
- Activities are typically reported when the user unlocks the device. They are rarely reported when the device is locked.
- Activities have both a ActivityPhase and ActivityState, which must be carefully
inspected to understand the activity the user is engaged in.
Inheritance
System.Object
AndroidActivityProbe
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: SensusAndroid.dll
Syntax
public class AndroidActivityProbe : AndroidAwarenessProbe, INotifyPropertyChanged, IListeningProbe, IProbe
Constructors
AndroidActivityProbe()
Declaration
public AndroidActivityProbe()
Properties
DatumType
Declaration
public override Type DatumType { get; }
Property Value
Type |
Description |
System.Type |
|
Overrides
DisplayName
Declaration
public override string DisplayName { get; }
Property Value
Type |
Description |
System.String |
|
Overrides
Methods
StartListeningAsync()
Declaration
protected override Task StartListeningAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
StopListeningAsync()
Declaration
protected override Task StopListeningAsync()
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
Overrides
Implements
System.ComponentModel.INotifyPropertyChanged