ActivityRecognizer QML Type
(BETA) Uses activity and motion recognition to determine if the user is stationary, walking, running, or in a vehicle. More...
|Import Statement:||import ArcGIS.AppFramework.Sensors 1.0|
- error : ActivityRecognizerError
- results : ActivityRecognizerResultsModel
- state : ActivityRecognizerState
- supported : bool
- updateInterval : int
The ActivityRecognition component uses device and motion sensors to detect the user's current activities. For example, it can determine if the user is stationary, walking, running, or in a vehicle.
This functionality is only available on Android and iOS devices.
Enum describing the current charge state of the activity recognizer. Informs the state property.
[read-only] error : ActivityRecognizerError
Describes an error encountered in activity recognition.
Contains the results of the recognized activity updated when onResultsChanged is emitted. A result contains the detected activity of the device with associated confidence.
Returns the current state of the activity recognizer. Informed by the ActivityRecognizerState enum.
Returns true if activity recognition is supported by the device. Otherwise, returns false.
Provides a value in milliseconds, with 1000 representing a one-second interval. The activity recognizer will update results based on this value for several seconds after the updateInterval value by the activity detection service. Be aware that sometimes, it may take longer to get a more accurate prediction.