public class

Subscription

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

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<Subscription> CREATOR
Public Methods
int describeContents()
boolean equals(Object that)
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 toDebugString()
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 DataSource getDataSource ()

Returns the data source for this subscription, if specified.

Returns
  • the specified data source, or null if none specified

public DataType getDataType ()

Returns the data type for this subscription, if specified.

Returns
  • the specified data type, or null if none specified

public int hashCode ()

public String toDebugString ()

public String toString ()

public void writeToParcel (Parcel dest, int flags)