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
Public Methods
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

Public Methods

public boolean equals (Object that)

Parameters
that Object
Returns
boolean

public DataSource getDataSource ()

Returns the data source for this subscription, if specified.

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

public DataType getDataType ()

Returns the data type for this subscription, if specified.

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

public int hashCode ()

Returns
int

public String toDebugString ()

Returns
String

public String toString ()

Returns
String

public void writeToParcel (Parcel dest, int flags)

Parameters
dest Parcel
flags int