2 * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 namespace Tizen.Sensor
22 /// The Pedometer changed event arguments class is used for storing the data returned by a pedometer.
24 /// <since_tizen> 3 </since_tizen>
25 public class PedometerDataUpdatedEventArgs : EventArgs
27 internal PedometerDataUpdatedEventArgs(float[] values)
29 StepCount = (uint) values[0];
30 WalkStepCount = (uint) values[1];
31 RunStepCount = (uint) values[2];
32 MovingDistance = values[3];
33 CalorieBurned = values[4];
34 LastSpeed = values[5];
35 LastSteppingFrequency = values[6];
36 LastStepStatus = (PedometerState) values[7];
40 /// Gets the step count.
42 /// <since_tizen> 3 </since_tizen>
43 /// <value> The step count. </value>
44 public uint StepCount { get; private set; }
47 /// Gets the walking step count.
49 /// <since_tizen> 3 </since_tizen>
50 /// <value> The walk step count. </value>
51 public uint WalkStepCount { get; private set; }
54 /// Gets the running step count.
56 /// <since_tizen> 3 </since_tizen>
57 /// <value> The run step count.</value>
58 public uint RunStepCount { get; private set; }
61 /// Gets the moving distance.
63 /// <since_tizen> 3 </since_tizen>
64 /// <value> The moving distance.</value>
65 public float MovingDistance { get; private set; }
68 /// Gets the calorie burned.
70 /// <since_tizen> 3 </since_tizen>
71 /// <value> The calorie burned.</value>
72 public float CalorieBurned { get; private set; }
75 /// Gets the last speed.
77 /// <since_tizen> 3 </since_tizen>
78 /// <value> The last speed. </value>
79 public float LastSpeed { get; private set; }
82 /// Gets the last stepping frequency.
84 /// <since_tizen> 3 </since_tizen>
85 /// <value> The last stepping frequency.</value>
86 public float LastSteppingFrequency { get; private set; }
89 /// Gets the last step status.
91 /// <since_tizen> 3 </since_tizen>
92 /// <value> The last stepping status. </value>
93 public PedometerState LastStepStatus { get; private set; }