com.google.android.gms.fitness.result.DailyTotalResult

Here are the examples of the java api class com.google.android.gms.fitness.result.DailyTotalResult taken from open source projects.

1. MainActivity#displayStepDataForToday()

Project: AndroidDemoProjects
File: MainActivity.java
//In use, call this every 30 seconds in active mode, 60 in ambient on watch faces
private void displayStepDataForToday() {
    DailyTotalResult result = Fitness.HistoryApi.readDailyTotal(mGoogleApiClient, DataType.TYPE_STEP_COUNT_DELTA).await(1, TimeUnit.MINUTES);
    showDataSet(result.getTotal());
}