Android APIs
public class

Subscription

extends Object
implements SafeParcelable
java.lang.Object
   ↳ com.google.android.gms.fitness.Subscription

Class Overview

Subscription for persistent storage of data from a given data source or for a given data type.

Example usage:

     new Subscription.Builder()
         .setDataType(DataTypes.ACTIVITY_SAMPLE)
         .setSamplingRate(5, TimeUnit.MINUTES)  // sample every 5 minutes
         .build();
 

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
From interface com.google.android.gms.common.internal.safeparcel.SafeParcelable
Fields
public static final Creator<Subscription> CREATOR
Public Methods
int describeContents()
boolean equals(Object that)
int getAccuracyMode()
Returns the accuracy mode for this subscription, if specified.
DataSource getDataSource()
Returns the data source for this subscription, if specified.
DataType getDataType()
Returns the data type for this subscription, if specified.
int hashCode()
String toString()
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<Subscription> CREATOR

Public Methods

public int describeContents ()

public boolean equals (Object that)

public int getAccuracyMode ()

Returns the accuracy mode for this subscription, if specified.

public DataSource getDataSource ()

Returns the data source for this subscription, if specified.

public DataType getDataType ()

Returns the data type for this subscription, if specified.

public int hashCode ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)