Android Guides | Samples

Android.Content.SyncStats Class

Used to record various statistics about the result of a sync operation.

See Also: SyncStats

Syntax

[Android.Runtime.Register("android/content/SyncStats", DoNotGenerateAcw=true)]
public class SyncStats : Object, IParcelable, IDisposable

Remarks

Used to record various statistics about the result of a sync operation. The SyncManager gets access to these via a SyncResult and uses some of them to determine the disposition of the sync. See SyncResult for further dicussion on how the SyncManager uses these values.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 5

The members of Android.Content.SyncStats are listed below.

See Also: Object

Public Constructors

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
static
CreatorIParcelableCreator.
NumAuthExceptionsInt64. The SyncAdapter was unable to authenticate the Account that was specified in the request.
NumConflictDetectedExceptionsInt64. The SyncAdapter detected that there was an unrecoverable version conflict when it attempted to update or delete a version of a resource on the server.
NumDeletesInt64. Counter for tracking how many deletes were performed by the sync operation, as defined by the SyncAdapter.
NumEntriesInt64. Counter for tracking how many entries were affected by the sync operation, as defined by the SyncAdapter.
NumInsertsInt64. Counter for tracking how many inserts were performed by the sync operation, as defined by the SyncAdapter.
NumIoExceptionsInt64. The SyncAdapter had a problem, most likely with the network connectivity or a timeout while waiting for a network response.
NumParseExceptionsInt64. The SyncAdapter had a problem with the data it received from the server or the storage later.
NumSkippedEntriesInt64. Counter for tracking how many entries, either from the server or the local store, were ignored during the sync operation.
NumUpdatesInt64. Counter for tracking how many updates were performed by the sync operation, as defined by the SyncAdapter.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Clear()
Reset all the counters to 0.
DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.