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 /// Pedometer changed event arguments. Class for storing the data returned by pedometer
24 public class PedometerDataUpdatedEventArgs : EventArgs
26 internal PedometerDataUpdatedEventArgs(float[] values)
28 StepCount = (uint) values[0];
29 WalkStepCount = (uint) values[1];
30 RunStepCount = (uint) values[2];
31 MovingDistance = values[3];
32 CalorieBurned = values[4];
33 LastSpeed = values[5];
34 LastSteppingFrequency = values[6];
35 LastStepStatus = (PedometerState) values[7];
39 /// Gets the step count
41 /// <since_tizen> 3 </since_tizen>
42 /// <value> Step count </value>
43 public uint StepCount { get; private set; }
46 /// Gets the walking step count
48 /// <since_tizen> 3 </since_tizen>
49 /// <value> Walk step count </value>
50 public uint WalkStepCount { get; private set; }
53 /// Gets the running step count
55 /// <since_tizen> 3 </since_tizen>
56 /// <value> Run step count</value>
57 public uint RunStepCount { get; private set; }
60 /// Gets the moving distance
62 /// <since_tizen> 3 </since_tizen>
63 /// <value> Moving distance </value>
64 public float MovingDistance { get; private set; }
67 /// Gets the calorie burned
69 /// <since_tizen> 3 </since_tizen>
70 /// <value> Calorie burned </value>
71 public float CalorieBurned { get; private set; }
74 /// Gets the last speed
76 /// <since_tizen> 3 </since_tizen>
77 /// <value> Last speed </value>
78 public float LastSpeed { get; private set; }
81 /// Gets the last stepping frequency
83 /// <since_tizen> 3 </since_tizen>
84 /// <value> Last stepping frequency </value>
85 public float LastSteppingFrequency { get; private set; }
88 /// Gets the last step status
90 /// <since_tizen> 3 </since_tizen>
91 /// <value> Last stepping status </value>
92 public PedometerState LastStepStatus { get; private set; }