public
class
SyncInfo
extends Object
implements
Parcelable
| java.lang.Object | |
| ↳ | android.content.SyncInfo |
Information about the sync operation that is currently underway.
Inherited constants |
|---|
Fields | |
|---|---|
public
final
Account |
account
The |
public
final
String |
authority
The authority of the provider that is currently being synced. |
public
final
long |
startTime
The start time of the current sync operation in milliseconds since boot. |
Public methods | |
|---|---|
int
|
describeContents()
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
void
|
writeToParcel(Parcel parcel, int flags)
Flatten this object in to a Parcel. |
Inherited methods | |
|---|---|
public final Account account
The Account that is currently being synced.
public final String authority
The authority of the provider that is currently being synced.
public final long startTime
The start time of the current sync operation in milliseconds since boot.
This is represented in elapsed real time.
See SystemClock.elapsedRealtime().
public int describeContents ()
Describe the kinds of special objects contained in this Parcelable
instance's marshaled representation. For example, if the object will
include a file descriptor in the output of writeToParcel(Parcel,int),
the return value of this method must include the
CONTENTS_FILE_DESCRIPTOR bit.
int0 or
public void writeToParcel (Parcel parcel,
int flags)Flatten this object in to a Parcel.
parcelParcel: The Parcel in which the object should be written.
null.flagsint: Additional flags about how the object should be written.
May be 0 or Parcelable.PARCELABLE_WRITE_RETURN_VALUE.
0 or a combination of the following:
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-02-26 UTC.