Commit 4b3528fd authored by sivl0509's avatar sivl0509
Browse files

delete additional functions

parent 5bbdf2db
......@@ -6,38 +6,5 @@ import android.hardware.SensorEvent
import android.hardware.SensorEventListener
import android.hardware.SensorManager
class Sensors : SensorEventListener {
private lateinit var mSensorManager: SensorManager
private var mHeartRateSensor: Sensor? = null
private var mStepCounterSensor: Sensor? = null
private var mStepDetectorSensor: Sensor? = null
private lateinit var mSensorDataListener: SensorDataListener
override fun onAccuracyChanged(sensor: Sensor?, accuracy: Int) {
// do nothing
}
override fun onSensorChanged(event: SensorEvent?) {
if (event == null) {
return
}
// TODO
}
fun createSensor(context: Context, sensorDataListener: SensorDataListener) {
// TODO
}
fun start() {
// TODO
}
fun stop() {
// TODO
}
interface SensorDataListener {
// TODO
}
class Sensors {
}
\ No newline at end of file
......@@ -12,7 +12,7 @@ import com.example.stayfitapplication.model.repository.SessionRepository
import java.util.*
import kotlin.collections.ArrayList
class SessionViewModel(context: Context) : ViewModel(), Sensors.SensorDataListener {
class SessionViewModel(context: Context) : ViewModel() {
private val mRepository: SessionRepository by lazy { StayFitApplication.repository }
init {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment