FileDocCategorySizeDatePackage
SyncInfo.javaAPI DocAndroid 5.1 API2779Thu Mar 12 22:22:10 GMT 2015android.content

SyncInfo

public class SyncInfo extends Object implements android.os.Parcelable
Information about the sync operation that is currently underway.

Fields Summary
public final int
authorityId
public final android.accounts.Account
account
The {@link 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 {@link android.os.SystemClock#elapsedRealtime()}.
public static final Creator
CREATOR
Constructors Summary
public SyncInfo(int authorityId, android.accounts.Account account, String authority, long startTime)

hide

        this.authorityId = authorityId;
        this.account = account;
        this.authority = authority;
        this.startTime = startTime;
    
public SyncInfo(SyncInfo other)

hide

        this.authorityId = other.authorityId;
        this.account = new Account(other.account.name, other.account.type);
        this.authority = other.authority;
        this.startTime = other.startTime;
    
SyncInfo(android.os.Parcel parcel)

hide

        authorityId = parcel.readInt();
        account = parcel.readParcelable(Account.class.getClassLoader());
        authority = parcel.readString();
        startTime = parcel.readLong();
    
Methods Summary
public intdescribeContents()

hide

        return 0;
    
public voidwriteToParcel(android.os.Parcel parcel, int flags)

hide

        parcel.writeInt(authorityId);
        parcel.writeParcelable(account, flags);
        parcel.writeString(authority);
        parcel.writeLong(startTime);