android.content
Class SyncResult
java.lang.Object
android.content.SyncResult
- All Implemented Interfaces:
- Parcelable
public final class SyncResult
- extends Object
- implements Parcelable
This class is used to store information about the result of a sync
syncAlreadyInProgress
public final boolean syncAlreadyInProgress
tooManyDeletions
public boolean tooManyDeletions
tooManyRetries
public boolean tooManyRetries
databaseError
public boolean databaseError
fullSyncRequested
public boolean fullSyncRequested
partialSyncUnavailable
public boolean partialSyncUnavailable
moreRecordsToGet
public boolean moreRecordsToGet
stats
public final SyncStats stats
ALREADY_IN_PROGRESS
public static final SyncResult ALREADY_IN_PROGRESS
CREATOR
public static final Parcelable.Creator<SyncResult> CREATOR
SyncResult
public SyncResult()
hasHardError
public boolean hasHardError()
hasSoftError
public boolean hasSoftError()
hasError
public boolean hasError()
madeSomeProgress
public boolean madeSomeProgress()
clear
public void clear()
describeContents
public int describeContents()
- Description copied from interface:
Parcelable
- Describe the kinds of special objects contained in this Parcelable's
marshalled representation.
- Specified by:
describeContents in interface Parcelable
- Returns:
- a bitmask indicating the set of special object types marshalled
by the Parcelable.
writeToParcel
public void writeToParcel(Parcel parcel,
int flags)
- Description copied from interface:
Parcelable
- Flatten this object in to a Parcel.
- Specified by:
writeToParcel in interface Parcelable
- Parameters:
parcel - The Parcel in which the object should be written.flags - Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
toString
public String toString()
- Description copied from class:
Object
- Returns a string containing a concise, human-readable description of the
receiver.
- Overrides:
toString in class Object
- Returns:
- String a printable representation for the receiver.
toDebugString
public String toDebugString()
- Generates a debugging string indicating the status.
The string consist of a sequence of code letter followed by the count.
Code letters are f - fullSyncRequested, r - partialSyncUnavailable,
X - hardError, e - numParseExceptions, c - numConflictDetectedExceptions,
a - numAuthExceptions, D - tooManyDeletions, R - tooManyRetries,
b - databaseError, x - softError, l - syncAlreadyInProgress,
I - numIoExceptions
- Returns:
- debugging string.
Please submit a feedback, bug or feature