Contains exactly one data set for each detailed data source requested in the
If aggregate data was requested, then the result will return buckets created as per the bucketing strategy specified in the request. Each bucket will have one data set per aggregate data requested.
can be used to retrieve the buckets.
can be be used to confirm if the request was successful.
In case the calling app is missing the required permissions, the returned status has
status code set to
NEEDS_OAUTH_PERMISSIONS. In this case the caller should use
startResolutionForResult(Activity, int) to start an intent to get the necessary
consent from the user before retrying the request.
In case the app attempts to read custom data created by another app, the returned status
has status code set to
Inherited Constant Summary
|public static final Creator<DataReadResult>||CREATOR|
Public Method Summary
Returns all of the data sets in the result.
Returns the status of this result.
Inherited Method Summary
writeToParcel(Parcel arg0, int arg1)
public boolean equals (Object that)
- an empty list if the read request failed.
Returns the resulting data set for the given
dataType. If more than one
data source for the given data type was requested, this method will return the data for
an arbitrary one. Use
getDataSet(DataSource) to read each specific data source.
- a data set for the given data type, empty if no data was found.
public DataSet getDataSet (DataSource dataSource)
public Status getStatus ()
Certain errors are due to failures that can be resolved by launching a particular
intent. The resolution intent is available via